国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

build.sh

2023-03-10 22:42 作者:向青年人學(xué)習(xí)  | 我要投稿

#

# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.

#

# Licensed under the Apache License, Version 2.0 (the "License");

# you may not use this file except in compliance with the License.

# You may obtain a copy of the License at

#

#? ? ?http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

#


PYTHON_MAJOR_VERSION=${PYTHON_MAJOR_VERSION:-3}

PYTHON_MINOR_VERSION=${PYTHON_MINOR_VERSION:-9}

TARGET=${TARGET_ARCHITECTURE:-aarch64}

CUDA_ROOT=${CUDA_ROOT:-/usr/local/cuda}

ROOT_PATH=${TRT_OSSPATH}

EXT_PATH=${EXT_PATH}

WHEEL_OUTPUT_DIR=${ROOT_PATH}/python/build

HEADER_PATH=/usr/include/aarch64-linux-gnu


mkdir -p ${WHEEL_OUTPUT_DIR}

pushd ${WHEEL_OUTPUT_DIR}


# Generate tensorrt.so

cmake .. -DCMAKE_BUILD_TYPE=Release \

? ? ? ? ?-DTARGET=${TARGET} \

? ? ? ? ?-DPYTHON_MAJOR_VERSION=${PYTHON_MAJOR_VERSION} \

? ? ? ? ?-DPYTHON_MINOR_VERSION=${PYTHON_MINOR_VERSION} \

? ? ? ? ?-DEXT_PATH=${EXT_PATH} \

? ? ? ? ?-DCUDA_INCLUDE_DIRS=${CUDA_ROOT}/include \

? ? ? ? ?-DTENSORRT_ROOT=${ROOT_PATH} \

? ? ? ? ?-DTENSORRT_BUILD=${ROOT_PATH}/build/

make -j12


# Generate wheel

TRT_MAJOR=$(awk '/^\#define NV_TENSORRT_MAJOR/ {print $3}' ${HEADER_PATH}/NvInferVersion.h)

TRT_MINOR=$(awk '/^\#define NV_TENSORRT_MINOR/ {print $3}' ${HEADER_PATH}/NvInferVersion.h)

TRT_PATCH=$(awk '/^\#define NV_TENSORRT_PATCH/ {print $3}' ${HEADER_PATH}/NvInferVersion.h)

TRT_BUILD=$(awk '/^\#define NV_TENSORRT_BUILD/ {print $3}' ${HEADER_PATH}/NvInferVersion.h)

TRT_VERSION=${TRT_MAJOR}.${TRT_MINOR}.${TRT_PATCH}.${TRT_BUILD}

TRT_MAJMINPATCH=${TRT_MAJOR}.${TRT_MINOR}.${TRT_PATCH}


echo "Generating python ${PYTHON_MAJOR_VERSION}.${PYTHON_MINOR_VERSION} bindings for TensorRT ${TRT_VERSION}"


expand_vars_cp () {

? ? test -f ${1} || (echo "ERROR: File: ${1} does not exist!" && exit 1); \

? ? sed -e "s|\#\#TENSORRT_VERSION\#\#|${TRT_VERSION}|g" \

? ? ? ? -e "s|\#\#TENSORRT_MAJMINPATCH\#\#|${TRT_MAJMINPATCH}|g" \

? ? ? ? ${1} > ${2}

}



pushd ${ROOT_PATH}/python/packaging

for dir in $(find . -type d); do mkdir -p ${WHEEL_OUTPUT_DIR}/$dir; done

for file in $(find . -type f); do expand_vars_cp $file ${WHEEL_OUTPUT_DIR}/${file}; done

popd

python3 setup.py -q bdist_wheel --python-tag=cp${PYTHON_MAJOR_VERSION}${PYTHON_MINOR_VERSION} --plat-name=linux_${TARGET}


popd


build.sh的評論 (共 條)

分享到微博請遵守國家法律
揭阳市| 莲花县| 大英县| 库伦旗| 开鲁县| 宁安市| 高邑县| 启东市| 长寿区| 长汀县| 花莲市| 延吉市| 若尔盖县| 广德县| 富源县| 长乐市| 湘潭市| 且末县| 文化| 轮台县| 库伦旗| 黄山市| 太和县| 威远县| 根河市| 安化县| 青神县| 泰州市| 祁连县| 当涂县| 新沂市| 定结县| 临武县| 德州市| 泸州市| 汉川市| 海盐县| 隆德县| 宁国市| 临邑县| 安远县|