在UBUNTU 16.04下安裝CUDA10.1+CUDNN7.5(簡略版)

安裝CUDA

下載鏈接,按照此流程走。
其中下面第二步添加網絡公鑰

sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<architecture>/7fa2af80.pub

如果找不到對應的網絡路徑,可以改爲本地公鑰

sudo apt-key add /var/<cuda version>/7fa2af80.pub

問題1:

[INFO]: ERROR: You appear to be running an X server; please exit X before
[INFO]:        installing.  For further details, please see the section INSTALLING
[INFO]:        THE NVIDIA DRIVER in the README available on the Linux driver
[INFO]:        download page at www.nvidia.com.

解決方案:
1.sudo service lightdm stop(此命令會關閉你的界面,進入命令行)
2.sudo init 3
來源

問題2:

ERROR: Stop Nouveau Kernel Driver 

解決方案:
1.Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
2.Regenerate the kernel initramfs:
sudo update-initramfs -u
來源

安裝CUDNN

下載鏈接,根據此流程

centos下安裝問題

1.驅動版本不對,運行nvidia-smi提示:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

此處(需翻牆)下載並安裝與系統內核匹配的GPU驅動包

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章