Last active
April 12, 2021 05:26
-
-
Save nvnnghia/e51172cb9a2055ed9b822454988d290f to your computer and use it in GitHub Desktop.
Install cudnn on linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html | |
2.3. Installing cuDNN on Linux | |
The following steps describe how to build a cuDNN dependent program. | |
Choose the installation method that meets your environment needs. | |
For example, the tar file installation applies to all Linux platforms. | |
The debian installation package applies to Ubuntu 14.04 and 16.04. | |
In the following sections: | |
your CUDA directory path is referred to as /usr/local/cuda/ | |
your cuDNN download path is referred to as <cudnnpath> | |
2.3.1. Installing from a Tar File | |
Navigate to your <cudnnpath> directory containing the cuDNN Tar file. | |
Unzip the cuDNN package. | |
$ tar -xzvf cudnn-9.0-linux-x64-v7.tgz | |
Copy the following files into the CUDA Toolkit directory. | |
$ 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.3.2. Installing from a Debian File | |
Navigate to your <cudnnpath> directory containing cuDNN Debian file. | |
Install the runtime library, for example: | |
sudo dpkg -i libcudnn7_7.0.3.11-1+cuda9.0_amd64.deb | |
Install the developer library, for example: | |
sudo dpkg -i libcudnn7-dev_7.0.3.11-1+cuda9.0_amd64.deb | |
Install the code samples and the cuDNN Library User Guide, for example: | |
sudo dpkg -i libcudnn7-doc_7.0.3.11-1+cuda9.0_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment