ubuntu18.04: nvidia drivers + cuda9.2 + cudnn installation

1.  install the PPA
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update

2.  install the driver and libs from the PPA
$ sudo apt-get install nvidia-driver-396 libnvidia-compute-396 libnvidia-common-396 nvidia-utils-396

3. install the toolkit
$ sudo sh cuda_9.2.148_396.37_linux.run --silent --toolkit
$ sudo sh cuda_9.2.148.1_linux.run --silent --accept-eula

4. install cuDNN optional
$ sudo dpkg -i libcudnn7_7.4.1.5-1+cuda9.2_amd64.deb
$ sudo dpkg -i libcudnn7-dev_7.4.1.5-1+cuda9.2_amd64.deb

5. check Installation

reboot your computer, then check if installation is work or not

sudo nvidia-smi

if success,  it would like be:

ubuntu18.04: nvidia drivers + cuda9.2 + cudnn installation_第1张图片

OK

cudnn  (libcudnn7_7.4.1.5-1+cuda9.2_amd64.deb ) can download from here:

https://download.csdn.net/download/opentld/10813653

cudnn-dev (libcudnn7-dev_7.4.1.5-1+cuda9.2_amd64.deb ) can download form here:

https://download.csdn.net/download/opentld/10813661

Reference:

     https://devtalk.nvidia.com/default/topic/1038384/cuda-setup-and-installation/ubuntu-18-04-and-cuda-9-2/

 

 


 

你可能感兴趣的:(Ubuntu)