# CUDNN version 90.5 is not compatible with 9.5

**URL:** <https://forum.opencv.org/t/cudnn-version-90-5-is-not-compatible-with-9-5/18987>\
**Category:** Uncategorized\
**Tags:** cuda, dnn\
**Created:** [October 17, 2024, 3:25am UTC](https://forum.opencv.org/t/cudnn-version-90-5-is-not-compatible-with-9-5/18987 "2024-10-17T03:25:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Gonzales](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/benjamin_gonzales/32/10835_2.png) [@Benjamin\_Gonzales](https://forum.opencv.org/u/Benjamin_Gonzales)\
**Post date:** [October 17, 2024, 3:25am UTC](https://forum.opencv.org/t/cudnn-version-90-5-is-not-compatible-with-9-5/18987/1 "2024-10-17T03:25:10Z")

</div>

Hello,  
I updated my environment to CUDA 12.6, OpenCV 4.10.0, and cuDNN 9.5.0. Now, in my Rust project, I can’t use cuDNN, and I get the following error:

```auto
Video probe: {Width: 1920px | Height: 1080px | FPS: 30}
CUDA is available: true, 1
Opencv Version: 4.10.0
Model format: darknet

[WARN:0@28.535] global init.hpp:32 checkVersions cuDNN reports version 90.5 which is not compatible with the version 9.5 with which OpenCV was built

```

Is OpenCV 4.10.0 not compatible with cuDNN 9.5.0?  
My OpenCV build had no issues. What am I doing wrong?

I’ll leave the details of my machine configuration.

**Nvida**

```auto
$ nvidia-smi
Wed Oct 16 22:12:49 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3060 Off | 00000000:05:00.0 Off | N/A |
| 0% 47C P8 14W / 170W | 1248MiB / 12288MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 10642 C python3.8 1114MiB |
| 0 N/A N/A 12349 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 1260046 C target/debug/app 106MiB |
+-----------------------------------------------------------------------------------------+

```

**nvcc**

```auto
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Sep_12_02:18:05_PDT_2024
Cuda compilation tools, release 12.6, V12.6.77
Build cuda_12.6.r12.6/compiler.34841621_0

```

**cudnn\_version.h**

```auto
$ cat /usr/include/cudnn_version.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 9
#define CUDNN_MINOR 5
#define CUDNN_PATCHLEVEL 0
--
#define CUDNN_VERSION (CUDNN_MAJOR * 10000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

```

---

<div class="post-metadata">

**Author:** ![Benjamin\_Gonzales](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/benjamin_gonzales/32/10835_2.png) [@Benjamin\_Gonzales](https://forum.opencv.org/u/Benjamin_Gonzales)\
**Post date:** [October 18, 2024, 2:44pm UTC](https://forum.opencv.org/t/cudnn-version-90-5-is-not-compatible-with-9-5/18987/2 "2024-10-18T14:44:54Z")

</div>

bug resolved

> <https://github.com/opencv/opencv/pull/25841>
>
> Fixes https://github.com/opencv/opencv/issues/25711
> 
> Fixed warning:
> \`\`\`
> \[WA…RN:0@410.036\] global init.hpp:32 checkVersions cuDNN reports version 90.1 which is not compatible with the version 9.1 with which OpenCV was built
> \`\`\`
> 
> CuDNN changed version multipliers since 9.0. The patch accommodates to it.
> 
> \### Pull Request Readiness Checklist
> 
> See details at https://github.com/opencv/opencv/wiki/How\_to\_contribute#making-a-good-pull-request
> 
> \- \[x\] I agree to contribute to the project under Apache 2 License.
> \- \[x\] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
> \- \[\] The PR is proposed to the proper branch
> \- \[x\] There is a reference to the original bug report and related work
> \- \[\] There is accuracy test, performance test and test data in opencv\_extra repository, if applicable
> Patch to opencv\_extra has the same branch name.
> \- \[\] The feature is well documented and sample code can be built with the project CMake
