Install cuDNN from deb

Hi previous I use the tarball to install cuDNN by copying the files to respective locations.

Now I m trying to install the run-time lib using a .deb (cuDNN7 on Ubuntu16.04)

$ sudo dpkg -i libcudnn7_7.0.1.13-1+cuda8.0_amd64.deb

This command (from the installation guide) only seems not enough. I still cannot find files like cudnn.h and also I cannot install the docs and samples as it complained cudnn-dev is not installed. Then I downloaded the developer version and run:

$ sudo dpkg -i libcudnn7-dev_7.0.1.13-1+cuda8.0_amd64.deb

but it complains again

libcudnn7-dev depends on libcudnn7 (= 7.0.1.13-1+cuda8.0); however:
Package libcudnn7 is not installed.

I have the same problem. I installed Cuda 9, from the developer site on Ubuntu 17.04. When I try to install cuDNN 7.0.2. Copying my error here.

ubuntu@:~/downloads$ sudo dpkg -i libcudnn7-doc_7.0.2.43-1+cuda9.0_amd64.deb
Selecting previously unselected package libcudnn7-doc.
(Reading database … 183137 files and directories currently installed.)
Preparing to unpack libcudnn7-doc_7.0.2.43-1+cuda9.0_amd64.deb …
Unpacking libcudnn7-doc (7.0.2.43-1+cuda9.0) …
dpkg: dependency problems prevent configuration of libcudnn7-doc:
libcudnn7-doc depends on libcudnn7-dev; however:
Package libcudnn7-dev is not installed.

dpkg: error processing package libcudnn7-doc (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libcudnn7-doc

Update:

I now installed cuDNN from the .dep package and it is working fine for me. Earlier, I was trying to install cuDNN from the tar files and then installing the samples and documents from the .deb files.

I am also facing same issue. Did anyone get its solution?

[update]
I have missing dependency, I should have installed “libcudnn7” runtime first.

having the same problem on Elementary Loki (ubuntu 16.04):

Preparing to unpack libcudnn7-dev_7.0.3.11-1+cuda9.0_amd64.deb ...
Unpacking libcudnn7-dev (7.0.3.11-1+cuda9.0) over (7.0.3.11-1+cuda9.0) ...
dpkg: dependency problems prevent configuration of libcudnn7-dev:
 libcudnn7-dev depends on libcudnn7 (= 7.0.3.11-1+cuda9.0); however:
  Package libcudnn7 is not installed.

dpkg: error processing package libcudnn7-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libcudnn7-dev

I am also facing same issue.Installation Guide say “your CUDA directory path is referred to as /usr/local/cuda/”.but cuda9.0 path is /usr/local/cuda-9.0/.

try download cuDNN v7.0 Library for Linux

same here

my solution was to “Install cuDNN v7.0.4 Runtime Library for Ubuntu16.04” before installing “cuDNN v7.0.4 Developer Library for Ubuntu16.04 (Deb)”

4 Likes

Hi,

I am trying to install CUDNN v7.0.5 with CUDA 8.0 on Jetson TX2 from the link - https://developer.nvidia.com/rdp/cudnn-download

when I run the command:$ sudo dpkg -i libcudnn7_7.0.5.15-1+cuda8.0_amd64.deb
I am facing this error:
dpkg: error processing archive libcudnn7_7.0.5.15-1+cuda8.0_amd64.deb (–install):
package architecture (amd64) does not match system (arm64)
Errors were encountered while processing:
libcudnn7_7.0.5.15-1+cuda8.0_amd64.deb

Kindly help

From that link, use the cudnn library for linux (which is a .tgz file) to install CUDNN

https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/8.0_20171129/cudnn-8.0-linux-x64-v7

you won’t be able to install a amd64 deb on arm64 platform

Also, read the install guide

Also, note that the sample codes are a separte .tgz download

Yes thankyou txbob :)

The sample files are also .deb and create the same dependency error. Where can I find the tgz samples?

the sample files are also contained in the

cuDNN vX.Y.Z Library for Linux

.tgz file

Hola:

antes de instalar:
cuDNN v7.0.5 Runtime Library for Ubuntu16.04 (Deb)
debes instalar:
cuDNN v7.0.5 Developer Library for Ubuntu16.04 (Deb)

entonces ya no saldra ese error.

Hello:

before installing:
CuDNN v7.0.5 Runtime Library for Ubuntu16.04 (Deb)
you must install:
CuDNN Development Library v7.0.5 for Ubuntu16.04 (Deb)

then that error will not come out.

Fil…

hi
I face the same problems
and I want to install CuDNN Development Library directly.However, somthing going wrong like following:

dpkg: dependency problems prevent configuration of libcudnn7-doc:
libcudnn7-doc depends on libcudnn7-dev; however:
Package libcudnn7-dev is not installed.

and I get idea from the former buddy:fvilca that I download the CuDNN Runtime version and install it first. It successed. and then I installed the CuDNN Developer version and it also successed.

wow it was amazing.hope it will help you

the sample files are also contained in the

cuDNN vX.Y.Z Library for Linux

.tgz file

can you please provide the link for samples and doc for cudnn-10.1-linux-x64-v7.6.2.24.tgz which contains the libraries and header files only.

The deb on ur website is only working for ubuntu 16.04 and below for package manager installation, not working for 18.04.(where installation is done by just copying the files).

Of course we can copy files from that deb. But it is not the proper way. Do you have link address like this one

https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/

where we can browse all the packages.

I had the same problem but salstouhi’s suggestion worked for me. Thanks a lot!

Please follow the install guide. The problem can be solved.

In the following sections:
your CUDA directory path is referred to as /usr/local/cuda/
your cuDNN download path is referred to as
2.3.1. Installing From A Tar File
Navigate to your directory containing the cuDNN Tar file.
Unzip the cuDNN package.
tar -xzvf cudnn-10.2-linux-x64-v7.6.5.32.tgz Copy the following files into the CUDA Toolkit directory, and change the file permissions. 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*

I just installed cuda 10.2 successfully and compiled the samples. The few I tested work fine.
I installed the runtime cudnn from the tar archive and copying them as above.
In fact I checked the /cuda/include and the cuda/lib64 directories and found the files properly copied.

-rwxr-xr-x 1 root root 459633080 Mar 18 01:47 libcudnn.so*
-rwxr-xr-x 1 root root 459633080 Mar 18 01:47 libcudnn.so.7*
-rwxr-xr-x 1 root root 459633080 Mar 18 01:47 libcudnn.so.7.6.5*

I then went to install the dev files of cudnn with
sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb

but got this:
(Reading database … 185816 files and directories currently installed.)
Preparing to unpack libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb …
Unpacking libcudnn7-dev (7.6.5.32-1+cuda10.2) over (7.6.5.32-1+cuda10.2) …
dpkg: dependency problems prevent configuration of libcudnn7-dev:
libcudnn7-dev depends on libcudnn7 (= 7.6.5.32-1+cuda10.2); however:
Package libcudnn7 is not installed.

dpkg: error processing package libcudnn7-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libcudnn7-dev

What?

[SOLVED]
REBOOT! after installing the libs. now examples compile.

Thanks! It works for me.