下载文件
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=CentOS&target_version=7&target_type=runfilelocal
上传系统指定位置
...
创建安装程序时所需的临时文件夹
cd /hriVCR
mkdir temp
执行安装
sudo sh ./cuda_10.0.130_410.48_linux.run --tmpdir=/hriVCR/temp/
#一路回车到有以下提示
-----------------
Do you accept the previously read EULA?
accept/decline/quit: accept
#是否要安装410.48版本的显卡驱动,这里选择N,因为已经装过
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 410.48?
(y)es/(n)o/(q)uit: n
Install the CUDA 10.0 Toolkit?
(y)es/(n)o/(q)uit: y
#指定安装路径
Enter Toolkit Location
[ default is /usr/local/cuda-10.0 ]: /hriVCR/cuda-10.0_lib
#创建软件链接
Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y
#安装例程
Install the CUDA 10.0 Samples?
(y)es/(n)o/(q)uit: n
#安装进行中...
Installing the CUDA Toolkit in /hriVCR/cuda-10.0_lib ...
安装完成
===========
= Summary =
===========
Driver: Not Selected
Toolkit: Installed in /hriVCR/cuda-10.0_lib
Samples: Not Selected
Please make sure that
- PATH includes /hriVCR/cuda-10.0_lib/bin
- LD_LIBRARY_PATH includes /hriVCR/cuda-10.0_lib/lib64, or, add /hriVCR/cuda-10.0_lib/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run the uninstall script in /hriVCR/cuda-10.0_lib/bin
Please see CUDA_Installation_Guide_Linux.pdf in /hriVCR/cuda-10.0_lib/doc/pdf for detailed information on setting up CUDA.
***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 10.0 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
sudo <CudaInstaller>.run -silent -driver
Logfile is /hriVCR/temp//cuda_install_13421.log