ubuntu20.04下载cuda11.8
nvidia官方地址:https://developer.nvidia.com/cuda-downloads
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run
输入该命令后
sudo sh cuda_11.8.0_520.61.05_linux.run
gedit ~/.bashrc
export PATH=/usr/local/cuda11.6/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/cuda11.6/lib64:${LD_LIBRARY_PATH}
source ~/.bashrc
nvcc -v