Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Cudnn from command line

Cudnn: https://developer.nvidia.com/cudnn

I login and go jump through all the hoops that NVIDIA wants you to do; however, when it comes time to download the file I can't seem to figure out how to do it via wget and the command line.

I was hoping someone has done this. I've copy and pasted the link that they want to click and used this in wget copy-and-pasted-url. But I just get back an html file.

like image 749
user678392 Avatar asked Jul 07 '15 21:07

user678392


People also ask

How can I download cuDNN in Linux?

Go to https://developer.nvidia.com/cudnn to download the latest version of CUDNN for the latest CUDA toolkit version OR go to https://developer.nvidia.com/rdp/cudnn-archive to download a previous version of CUDNN that is compatible with your CUDA toolkit.

How do I make sure cuDNN is installed?

Install CuDNN Step 1: Register an nvidia developer account and download cudnn here (about 80 MB). You might need nvcc --version to get your cuda version. Step 2: Check where your cuda installation is. For most people, it will be /usr/local/cuda/ .


1 Answers

The following trick works with Firefox:

  1. Download the file with your regular machine
  2. Go to the downloads list in firefox, right click on the file and click "Copy original download URL"

enter image description here

  1. Go to your pure-terminal machine, and type:

    wget PASTE-YOUR-LINK-FROM-FIREFOX

As @deltheil mentionned, by doing this the link contains a temporary download token, letting you download the file from another machine then the one it was requested from

EDIT

The downloaded filename is libcudnn***.deb?<some download token>. You will need to rename it by stripping the ? and everything after it:

mv libcudnn***.deb?xxx libcudnn***.deb
like image 197
Overdrivr Avatar answered Oct 07 '22 11:10

Overdrivr