1. 有老版本的Cuda,需要卸载老版本Cuda和driver,
参考: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-tk-and-driver
如Cuda 10:
cd /usr/local/cuda/bin
./cuda-uninstaller
选择要卸载的模块,一般都选,就卸载了
卸载cuda driver:
sh NVIDIA-Linux-x86_64-430.50.run --uninstall
2. 安装新的Cuda和新driver:
下载新driver:
https://www.nvidia.com/download/index.aspx?lang=en-us
sh NVIDIA-Linux-x86_64-XXX.XX.run
下载新Cuda toolkit
https://developer.nvidia.com/cuda-toolkit-archive
选择需要安装的版本,如10.2:
https://developer.nvidia.com/cuda-10.2-download-archive
下载到CentOS上,执行:
chmod +x cuda_10.2.89_440.33.01_linux.run
./cuda_10.2.89_440.33.01_linux.run
以上就是“如何在CentOS 7.8安装Cuda 10”的详细内容,更多请关注木子天禾科技其它相关文章!