cudnn.h:500:27: note: declared here
cudnnStatus_t CUDNNWINAPI cudnnSetConvolution2dDescriptor( cudnnConvolutionDescriptor_t convDesc,
^
google 发现是cudnn.h不兼容cudnnv5的问题,
解决方法是用新版本caffe中的cudnn.hpp替换当前caffe根目录下 include/caffe/util/里的cudnn.hpp
cp caffe-master/include/caffe/util/cudnn.hpp ./include/caffe/util/