網頁

2018年10月17日 星期三

ubuntu 16.04 install cuDNN

1. https://developer.nvidia.com/cudnn 下載

cuDNN v7.3.1 Library for Linux
cuDNN v7.3.1 Runtime Library for Ubuntu16.04 (Deb)
cuDNN v7.3.1 Developer Library for Ubuntu16.04 (Deb)
cuDNN v7.3.1 Code Samples and User Guide for Ubuntu16.04 (Deb)


$ tar -xzvf cudnn-9.0-linux-x64-v7.tgz
$ sudo cp cuda/include/cudnn.h /usr/local/cuda/include
(sudo cp cuda/targets/ppc64le-linux/include/cudnn.h /usr/local/cuda/include)
$ sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
(sudo cp cuda/targets/ppc64le-linux/lib/libcudnn* /usr/local/cuda/lib64)
$ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
$ sudo dpkg -i libcudnn7_7.3.1.20-1+cuda10.0_amd64.deb
$ sudo dpkg -i libcudnn7-dev_7.3.1.20-1+cuda10.0_amd64.deb
$ sudo dpkg -i libcudnn7-doc_7.3.1.20-1+cuda10.0_amd64.deb
$ cp -r /usr/src/cudnn_samples_v7/ $HOME
$ cd  $HOME/cudnn_samples_v7/mnistCUDNN
$ make clean && make
$ ./mnistCUDNN
有出現Test passed!代表完成

沒有留言:

張貼留言