You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
510 B
27 lines
510 B
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# 接收参数
|
|
TARGET=$1
|
|
|
|
|
|
|
|
|
|
echo -e "\n正在编译和安装 CUDA工程编译库(NVRTC)……\n"
|
|
|
|
${SHELLROOT}/utils/begin_stage NVRTC cuda*nvrtc*.tar.gz
|
|
cd ${SHELLROOT}/tempDIR/`echo cuda*nvrtc*.tar.gz | sed 's/\*.*//'`*
|
|
|
|
cp -v ${SHELLROOT}/installLib/nvrtc-install.sh .
|
|
|
|
sleep 2
|
|
if ./nvrtc-install.sh $TARGET; then
|
|
echo -e "\n * CUDA工程编译库(NVRTC),编译和安装成功\n"
|
|
else
|
|
echo -e "\n !!! CUDA工程编译库(NVRTC),编译和安装失败\n"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|