在配置dlib使用CUDA加速时,CMake配置CUDA报错如下:
Checking if you have the right version of cuDNN installed.
*** Found cuDNN, but it looks like the wrong version so dlib will not use it. ***
*** Dlib requires cuDNN V5.0 OR GREATER. Since cuDNN is not found DLIB WILL NOT USE CUDA. ***
*** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder. ***
Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
解决办法:
1、检查环境变量是否配置了 CMAKE_PREFIX_PATH
2、合并cudnn目录
CUDNN 官网下载地址:https://developer.nvidia.com/rdp/cudnn-archive
解压cudnn的压缩包
将对应的bin、lib、include与CUDA
安装路径对应的bin、lib、include进行合并
参考文章:
https://blog.csdn.net/gong0585/article/details/122362305
https://blog.csdn.net/weixin_42568366/article/details/116864093