ubuntu18.04 install NVIDA DRIVER, CUDA, CUDNN

筅森魡賤 提交于 2019-12-30 19:29:10

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

NVIDIA DRIVER

sudo apt-get update
sudo apt-get install git cmake build-essential vim
sudo vim /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
sudo reboot

Ctrl+Alt+F3 tty3

sudo chmod a+x NVIDIA-Linux-x86_64-440.44.run
sudo ./NVIDIA-Linux-x86_64-440.44.run --no-opengl-files
sudo vim ~/.bashrc
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH 
export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
nvidia-smi

CUDA

sudo shcuda_10.2.89_440.33.01_linux.run --no-opengl-libs
accept
[  ] DRIVER
[X] CUDA Toolkit
[X]SAMPLES
[X]*SUIT*
[X]DOCUMENTATION
option
install
cd
sudo vim .bashrc
export PATH=/usr/local/cuda-10.0/bin:$PATH 
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH 
cd
source .bashrc

cuDNN

sudo dpkg -i libcudnn7_7.6.5.32-1+cuda10.2_amd64.deb
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!