在UBUNTU 16.04下安装CUDA10.1+CUDNN7.3(简略版)

安装CUDA

按照https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html流程走

问题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
https://askubuntu.com/questions/149206/how-to-install-nvidia-run

问题2:
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
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-nouveau

安装CUDNN

根据https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html流程走

猜你喜欢

转载自blog.csdn.net/h8832077/article/details/88429422