05月19, 2021

linux 安装nvidia driver+cuda

经实验,最快的方式是用apt-install安装,会自动安装nvidia-devier和cuda

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
sudo apt-get update
## 注意修改cuda版本
sudo apt-get -y install cuda-11-1

本文链接:http://57km.cc/post/install nvidia driver+cuda on ubuntu.html

-- EOF --

Comments