Franck Dernoncourt
Franck Dernoncourt

Reputation: 83307

How to know which cuDNN version one should use?

I plan to use cuDNN on Linux: how to know which cuDNN version I need? Should I always use the most recent one?

E.g. choosing the right CUDA version depends on the Nvidia driver version. I wonder if there is similar constrains for choosing the cuDNN (given that it may give some fancy error messages later on I'd prefer to know before I try).

Upvotes: 11

Views: 27793

Answers (3)

Ali Raza
Ali Raza

Reputation: 71

From CUDA version 11.6 and onwards, there is no need for cuDNN version to match CUDA version. You can install whatever the latest version is available. Like I have installed cuDNN version released for CUDA 11.8 with CUDA 11.6. Here you can see at Nvidia's website that they have generalized 11.x for latest cuDNN downloads.

enter image description here

Upvotes: 2

Franck Dernoncourt
Franck Dernoncourt

Reputation: 83307

In addition to CUDA version requirements, you need to ensure that your GPU has compute capability that is high enough:

  • All versions of cuDNN from 1.0 to 5.1 require compute capability 3.0 or higher.

Wikipedia's CUDA article has a good list of the various compute capability levels and corresponding GPUs (a similar list is available on Nvidia's compute capability webpage).

Upvotes: 4

Robert Crovella
Robert Crovella

Reputation: 152113

You should use whichever is the latest version of cuDNN supported by your application and platform, since that will have the most bug fixes and enhancements. And yes, cuDNN versions depend on specific cuda versions. That is spelled out in the download page. (You will have to be a registered developer to access that page.)

cuDNN v5.1 has different versions for CUDA 7.5 and CUDA 8.0
cuDNN v5   has different versions for CUDA 7.5 and CUDA 8.0
cuDNN v4 and v3 both require CUDA 7.0
cuDNN v2 and v1 both require CUDA 6.5
All cuDNN versions require compute capability >= 3.0 devices

Again, all of the above information is available on the download page for cuDNN. Previous versions can be downloaded from the link at the bottom of the download page.

Upvotes: 14

Related Questions