TextBoxes_plusplus icon indicating copy to clipboard operation
TextBoxes_plusplus copied to clipboard

Solved "too few arguments" problem in cudnn6

Open chaseleecn opened this issue 7 years ago • 4 comments

compiling error:

PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/data_reader.cpp
In file included from ./include/caffe/util/device_alternate.hpp:40:0,
                 from ./include/caffe/common.hpp:19,
                 from src/caffe/data_reader.cpp:6:
./include/caffe/util/cudnn.hpp: In function ‘void caffe::cudnn::setConvolutionDesc(cudnnConvolutionStruct**, cudnnTensorDescriptor_t, cudnnFilterDescriptor_t, int, int, int, int)’:
./include/caffe/util/cudnn.hpp:112:3: error: too few arguments to function ‘cudnnStatus_t cudnnSetConvolution2dDescriptor(cudnnConvolutionDescriptor_t, int, int, int, int, int, int, cudnnConvolutionMode_t, cudnnDataType_t)’
   CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
   ^
In file included from ./include/caffe/util/cudnn.hpp:5:0,
                 from ./include/caffe/util/device_alternate.hpp:40,
                 from ./include/caffe/common.hpp:19,
                 from src/caffe/data_reader.cpp:6:
/usr/local/cuda/include/cudnn.h:500:27: note: declared here
 cudnnStatus_t CUDNNWINAPI cudnnSetConvolution2dDescriptor( cudnnConvolutionDescriptor_t convDesc,
                           ^
Makefile:575: recipe for target '.build_release/src/caffe/data_reader.o' failed
make: *** [.build_release/src/caffe/data_reader.o] Error 1

chaseleecn avatar Feb 06 '18 02:02 chaseleecn

I can not compile it successfully on my side. Maybe it is sensitive to the environment?

MhLiao avatar Feb 25 '18 03:02 MhLiao

@MhLiao This is weird, can you elaborate on your environment settings(os and cudnn version) and error messages?

chaseleecn avatar Feb 26 '18 08:02 chaseleecn

I believe it's failing coz of cuDNN 6.0 version,

sathi006 avatar Mar 27 '18 13:03 sathi006

hello,guys, I use cudnn6, and I have build the environment except this, has anyone run successfully on cudnn6, can you give me a hand or give me some advice ? THANKS^_^

lxx1884896 avatar Jul 26 '18 12:07 lxx1884896