Install CUDA 10.2 on Linux
作者:XD / 发表: 2023年2月9日 02:56 / 更新: 2023年2月9日 02:57 / 编程笔记 / 阅读量:1100
Install CUDA 10.2 on Linux
# https://developer.nvidia.com/cuda-10.2-download-archive
wget https://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
sh cuda_10.2.89_440.33.01_linux.run
vim ~/.bashrc # enter .bashrc, press "i", and add following commands
export CUDA_HOME=/usr/local/cuda-10.2
export PATH=$PATH:$CUDA_HOME/bin
export LD_LIBRARY_PATH=/usr/local/cuda-cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
source ~/.bashrc # press "ESC", and input ":wq" to save file
nvcc -V # check CUDA version