1.cuda 11.8网址
CUDA Toolkit 11.8 Downloads | NVIDIA Developer
2.安装
sh cuda_11.8.0_520.61.05_linux.run
直接accept
移动上下到driver上,再enter一下取消driver的更新
更新一下.bashrc,cp -r ~/.bashrc xxx
export PATH=/usr/local/cuda-11.8/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH
export PATH=/home/miniconda3/bin:$PATH
. /home/miniconda3/etc/profile.d/conda.sh
conda activate
一般安装完路径就在/usr/local目录下,更新驱动需要重新启动reboot,只更新cuda不需要重新启动。