Reprint please specify the source:
Http://www.cnblogs.com/darkknightzh/p/5668471.html
Reference URL:
https://devtalk.nvidia.com/default/topic/912765/cudnn-install-error/
Https://github.com/soumith/cudnn.torch
This title may not be appropriate, but you'll need to install Nvidia's CUDNN first, and then install Torch's CUDNN (called an interpreter or something).
1. Go to NVIDIA website to download CUDNN (after registration can download):
Https://developer.nvidia.com/cudnn
What I'm downloading here is cudnn-7.5-linux-x64-v5.0-ga.tgz.
2. Follow the instructions in the reference URL https://devtalk.nvidia.com/default/topic/912765/cudnn-install-error/juliebernauer to use the following command:
sudo tar xvfz cudnn-7.5-linux-x64-v5. 0-ga.tgz-c/usr/local
Unzip the file into the/usr/local/directory.
3. Set environment variables (note that the cudnnv5.0 version of the Lib folder is lib64):
Export cpath=/usr/local/cuda/include:$cpathexport library_path=/usr/local/cuda/lib64:$LIBRARY_ Pathexport ld_library_path=/usr/local/cuda/lib64: $LD _library_path
Description : The above command does not know where the environment variable changed ... I'm an Ubuntu rookie. Thus, open the. bashrc file directly in the default directory of the terminal:
Gedit. BASHRC
Then, simply and rudely paste the above three sentences to the end of the file ... As follows:
4. Download torch version of CUDNN, URL: https://github.com/soumith/cudnn.torch
Installation with luarocks install
5. The most important step: Restart the computer ... This afternoon in another computer installed after torch, did not restart, the direct use of zerobrane,require bag, has been prompted not ... So, be sure to restart.
6. There is no theoretical problem, such as:
Install torch version of CUDNN in Ubuntu16 (original)