1\编译make: *** [.build_release/src/caffe/layer.o] Error 1
from ./include/caffe/common.hpp:19,
from src/caffe/net.cpp:10:
./include/caffe/util/cudnn.hpp: In function 鈥榲oid caffe::cudnn::createPoolingDesc(cudnnPoolingStruct**, caffe::PoolingParameter_PoolMethod, cudnnPoolingMode_t*, int, int, int, int, int, int)鈥?
./include/caffe/util/cudnn.hpp:136:9: error: 鈥楥UDNN_PROPAGATE_NAN鈥?was not declared in this scope
CUDNN_PROPAGATE_NAN, h, w, pad_h, pad_w, stride_h, stride_w));
./include/caffe/util/cudnn.hpp:136:68: error: there are no arguments to 鈥榗udnnSetPooling2dDescriptor_v4鈥?that depend on a template parameter, so a declaration of 鈥榗udnnSetPooling2dDescriptor_v4鈥?must be available [-fpermissive]
CUDNN_PROPAGATE_NAN, h, w, pad_h, pad_w, stride_h, stride_w));
./include/caffe/util/cudnn.hpp:136:68: note: (if you use 鈥?fpermissive鈥? G++ will accept your code, but allowing the use of an undeclared name is deprecated)
CUDNN_PROPAGATE_NAN, h, w, pad_h, pad_w, stride_h, stride_w));
./include/caffe/util/cudnn.hpp: At global scope:
./include/caffe/util/cudnn.hpp:141:40: error: variable or field 鈥榗reateActivationDescriptor鈥?declared void
inline void createActivationDescriptor(cudnnActivationDescriptor_t* activ_desc,
./include/caffe/util/cudnn.hpp:142:27: error: expected primary-expression before 鈥榤ode鈥? cudnnActivationMode_t mode) {
2\caffe error
CHECK_LE(shape[i], INT_MAX / count_) <<count_ << "blob size exceeds INT_MAX" ;
size of blob oversize the int type.
出现这种问题一般都是因为因为cudnn版本与caffe版本不匹配