Could NOT find CUDNN (missing: CUDNN_LIBRARY CUDNN_INCLUDE_DIR)

OS: win10 ( 64bits )
Cuda : 10.2
Cudnn : 7.6.5
Opencv: github latest

When I use cmake-gui I get this information :

Could NOT find CUDNN (missing: CUDNN_LIBRARY CUDNN_INCLUDE_DIR) (Required is at least version “7.5”)
cudnn_problem_1

and

cuDNN : NO
cudnn_problem_2

But I have installed it in the c: / path
please give me some suggestions , thx …

2 thoughts on “Could NOT find CUDNN (missing: CUDNN_LIBRARY CUDNN_INCLUDE_DIR)

  1. Thanks.
    I solved the issue. No need to merge cudnn’s files into CUDA folders.
    I modified CMakeCache.txt directly to change vars below.

    CUDNN_INCLUDE_DIR:FILEPATH=D:/.../cudnn-7.5.6/include
    CUDNN_LIBRARY:FILEPATH=D:/.../cudnn-7.5.6/lib/cudnn.lib
    
  2. Actually you can also solve by cmake add this
    -D CUDNN_INCLUDE_DIR="your cudnn include path" -D CUDNN_LIBRARY="your cudnn lib path"