# support for cuDNN NVIDIA CUDA® Deep Neural Network library

**URL:** https://discourse.cmake.org/t/support-for-cudnn-nvidia-cuda-deep-neural-network-library/2082
**Category:** Development
**Tags:** lang:cuda
**Created:** [October 28, 2020, 2:19pm UTC](https://discourse.cmake.org/t/support-for-cudnn-nvidia-cuda-deep-neural-network-library/2082 "2020-10-28T14:19:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Morteza\_Kianian](https://discourse.cmake.org/user_avatar/discourse.cmake.org/morteza_kianian/32/915_2.png) [@Morteza\_Kianian](https://discourse.cmake.org/u/Morteza_Kianian)
#### Post date: [October 28, 2020, 2:19pm UTC](https://discourse.cmake.org/t/support-for-cudnn-nvidia-cuda-deep-neural-network-library/2082/1 "2020-10-28T14:19:07Z")

</div>

Currently for adding `cuDNN` libraries a module created by Stefano Sinigardi called `FindCUDNN.cmake` is used in many projects such as `Darknet`. I see the `FindCUDA.cmake` module is replaced by `FindCUDAToolkit` but still there’s no official `cmake` support for `cuDNN`. Will that be included in the near future?

---

<div class="post-metadata">

### Author: ![robert.maynard](https://discourse.cmake.org/user_avatar/discourse.cmake.org/robert.maynard/32/4_2.png) [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)
#### Post date: [October 28, 2020, 3:40pm UTC](https://discourse.cmake.org/t/support-for-cudnn-nvidia-cuda-deep-neural-network-library/2082/2 "2020-10-28T15:40:40Z")

</div>

> [@Morteza\_Kianian](#):
>
> I see the `FindCUDA.cmake` module is replaced by `FindCUDAToolkit` but still there’s no official `cmake` support for `cuDNN` . Will that be included in the near future?

The FindCUDA and FindCUDAToolkit only search for CUDA libraries that are provided as part of the CUDA SDK. Currently `cuDNN` is an additional download, and therefore would need a separte module.

The preference would be that `cuDNN` would provide a config module as part of the package, allowing existing CMake installs to work nicely.

---

<div class="post-metadata">

### Author: ![Morteza\_Kianian](https://discourse.cmake.org/user_avatar/discourse.cmake.org/morteza_kianian/32/915_2.png) [@Morteza\_Kianian](https://discourse.cmake.org/u/Morteza_Kianian)
#### Post date: [October 28, 2020, 6:17pm UTC](https://discourse.cmake.org/t/support-for-cudnn-nvidia-cuda-deep-neural-network-library/2082/3 "2020-10-28T18:17:00Z")

</div>

Yes It’s optional but according to official installation notes from NVIDIA it must be copied to the same directory where the headers and libraries of `CUDA` are found so it would be nice to have `FindCUDAToolkit` take care of it IMHO.
