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上,執(zhí)行:
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”的詳細內(nèi)容,更多請關(guān)注木子天禾科技其它相關(guān)文章!