Install torch version of CUDNN in Ubuntu16 (original)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.