Post

CUDA NVCC安装

CUDA运算需要安装NVCC

安装cuda-toolkit-11-2(ubuntu18.04):

1
2
wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda_11.2.2_460.32.03_linux.run
sudo sh cuda_11.2.2_460.32.03_linux.run
1
2
3
4
5
6
7
8
# set PATH
# vim ~/.bashrc
export PATH=$PATH:/usr/local/cuda-11.2/bin
export LD_LIBRARY_PATH=/usr/local/cuda-11.2/lib64
export CUDA_HOME=/usr/local/cuda

source ~/.bashrc
nvcc --version
This post is licensed under CC BY 4.0 by the author.