如何使用CMake查找CUDNN?

问题描述 投票:1回答:1

显然我正确安装了CUDA和CUDNN,但FindCUDA仍然可以找到CUDA,但是FindCUDNN.cmake找不到CUDNN

我还应该检查什么来调试它?

OS: Windows 10

cmake版本 3.17.2

CUDA版本 10.2

CUDNN版本 cudnn-10.2-windows10-x64-v7.6.5.32

CUDA与安装程序一起安装,至C:\ Program Files \ NVIDIA GPU Computing Toolkit \ CUDA \ v10.2

根据指示设置路径enter image description here

CUDNN文件复制到相应的bin,include和lib文件夹中

enter image description here

enter image description here

enter image description here

[cmake] -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2 (found version "10.2") 
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
[cmake]   Could NOT find CUDNN (missing: CUDNN_LIBRARY CUDNN_INCLUDE_DIR)
[cmake] Call Stack (most recent call first):
[cmake]   C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
[cmake]   cmake/FindCUDNN.cmake:90 (find_package_handle_standard_args)
[cmake]   CMakeLists.txt:17 (find_package)

FindCUDNN.cmake:https://gist.github.com/WurmD/26af2940d8dec7cc48d38bc30fd1b3ef

windows cmake cudnn
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.