个人微信公众号:AI研习图书馆,欢迎关注~
深度学习知识及资源分享,学习交流,共同进步~
1. 错误
最近编译refinedet出现以下错误,百思不得其解,查阅相关资料,最终解决,记录下来,为大家提供方便~
enumeration value ‘CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING’ not handled in switch [-Wswitch]
warning: enumeration value ‘CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSI not handled in switch
具体错误:
In file included from src/caffe/util/cudnn.cpp:2:0:
./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’:
./include/caffe/util/cudnn.hpp:18:10: warning: enumeration value ‘CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING’ not handled in switch [
-Wswitch]
switch (status) {
^
./include/caffe/util/cudnn.hpp:18:10: warning: enumeration value ‘CUDNN_STATUS_RUNTIME_IN_PROGRESS’ not handled in switch [-Wswitch]
./include/caffe/util/cudnn.hpp:18:10: warning: enumeration value ‘CUDNN_STATUS_RUNTIME_FP_OVERFLOW’ not handled in switch [-Wswitch]
./include/caffe/util/cudn

在编译refinedet时遇到CUDNN_STATUS_RUNTIME_PREREQUISITE_MISSING警告,原因是使用的cudnn版本较新。解决方案是将项目中的caffe相关cudnn文件替换为最新版caffe的对应文件,包括cudnn.hpp、cudnn开头的layer文件和cpp文件。详细步骤见博客内容。
最低0.47元/天 解锁文章
5620

被折叠的 条评论
为什么被折叠?



