Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download the cuDNN straight from nvidia website to my linux instance on GCP

I want to install tensorflow-gpu on my linux machine on google cloud platform. I am not using an deep learning vm gcp provide. So I installed anaconda on my linux instance and now i want to install tensorflow. I already installed nvidia drivers and cuda. They can be downloaded straight in to the cloud instances. But for cuDNN I have to download it into my local machine and then upoad it into the cloud instance. Is there a way to download that file directly from nvidia site to my cloud instance? Thank you

EDIT


 CUDNN_URL="developer.download.nvidia.com/compute/redist/cudnn/v5.1/cudnn-8.0-linux-x64-v5.1.tgz" 
 wget -c ${CUDNN_URL} 

Using these lines of commands we can directly download cudnnv5.1 and I have seen the links for version 6.5 as well. I tried the same link by putting the version I want but it did not work. Anyone knows a way to use this CUDNN_URL to directly download cudnn v7.1 or higher directly using wget or curl but not logging into the an Nvidia account?

like image 293
Gayal Kuruppu Avatar asked Mar 25 '20 13:03

Gayal Kuruppu


People also ask

Where does cuDNN get installed?

Install CuDNN For most people, it will be /usr/local/cuda/ . You can check it with which nvcc .


2 Answers

There was a change in the naming convention of cuDNN archives.

Since version 7.2.1, NVIDIA added the full version number into the archive name instead of the previously used short one.

That means that the resulting download link for 7.2.1 is: https://developer.download.nvidia.com/compute/redist/cudnn/v7.2.1/cudnn-9.2-linux-x64-v7.2.1.38.tgz instead of, https://developer.download.nvidia.com/compute/redist/cudnn/v7.2.1/cudnn-9.2-linux-x64-v7.2.tgz

You can follow this pattern:

VERSION_FULL="8.1.0.77"
VERSION="${VERSION_FULL%.*}"
CUDA_VERSION="11.2"
OS_ARCH="linux-x64"
CUDNN_URL="https://developer.download.nvidia.com/compute/redist/cudnn/v${VERSION}/cudnn-${CUDA_VERSION}-${OS_ARCH}-v${VERSION_FULL}.tgz" 
wget -c ${CUDNN_URL}

The resulting link would be: https://developer.download.nvidia.com/compute/redist/cudnn/v8.1.0/cudnn-10.2-linux-x64-v8.1.0.77.tgz

like image 108
robertm.tum Avatar answered Sep 18 '22 12:09

robertm.tum


Because you need to have a developer account to get cuDNN there are no direct links to download files.

As a workaround you can download cuDNN and other software to your local machine and then follow documentation Transferring files to instances to copy files to your VM instance:

transfer

For example, if you use Windows I'd recommend you to use WinSCP to copy files to your VM.

In addition, have a look at this article Deep Learning environment setup on Ubuntu(16.04) | CUDA, cuDNN, OpenCV(3.x), TensorFlow, Keras.

like image 36
Serhii Rohoza Avatar answered Sep 21 '22 12:09

Serhii Rohoza