ubuntu16.04 installation cuDNN

cudnn installation is very simple

(1) Download the installation file

On demand download cudnn installation file : https://developer.nvidia.com/rdp/cudnn-archive

Tar File downloads as shown, red block select options for download

 

Downloading cudnn- * tgz is compressed, push the installation instructions:

cudnn at first decompress compressed package file

tar -xzvf cudnn-9.0-linux-x64-v7.tgz

The installation, in fact, copy header and library files and give permissions

sudo cp cuda/include/cudnn.h /usr/local/cuda/include

sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64

sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*

(2) verify successful installation

cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

If the

#define CUDNN_MAJOR 7
#define CUDNN_MINOR 6
#define CUDNN_PATCHLEVEL 2
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

The successful installation cudnn

Guess you like

Origin www.cnblogs.com/liuwenhua/p/11521668.html