crfasrnn icon indicating copy to clipboard operation
crfasrnn copied to clipboard

Error while compiling

Open rahimentezari opened this issue 7 years ago • 2 comments

I just uncommented the Makefile.config line No.5 so I can use cuDNN, but when running make , this error comes: NVCC src/caffe/layers/sigmoid_layer.cu NVCC src/caffe/layers/dropout_layer.cu NVCC src/caffe/layers/multi_stage_meanfield.cu NVCC src/caffe/layers/deconv_layer.cu NVCC src/caffe/layers/hdf5_data_layer.cu NVCC src/caffe/layers/relu_layer.cu NVCC src/caffe/layers/lrn_layer.cu NVCC src/caffe/layers/power_layer.cu NVCC src/caffe/layers/hdf5_output_layer.cu NVCC src/caffe/layers/bnll_layer.cu NVCC src/caffe/layers/cudnn_conv_layer.cu src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "cudnnAddMode_t" is incompatible with parameter of type "const void *" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "const void *" is incompatible with parameter of type "cudnnTensorDescriptor_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "const void *" is incompatible with parameter of type "cudnnTensorDescriptor_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: too many arguments in function call detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(113): error: argument of type "const void *" is incompatible with parameter of type "cudnnConvolutionBwdFilterAlgo_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(113): error: argument of type "float *" is incompatible with parameter of type "size_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(113): error: too few arguments in function call detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(128): error: argument of type "const void *" is incompatible with parameter of type "cudnnConvolutionBwdDataAlgo_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(128): error: argument of type "float *" is incompatible with parameter of type "size_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(128): error: too few arguments in function call detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=float]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "cudnnAddMode_t" is incompatible with parameter of type "const void *" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "const void *" is incompatible with parameter of type "cudnnTensorDescriptor_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: argument of type "const void *" is incompatible with parameter of type "cudnnTensorDescriptor_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(67): error: too many arguments in function call detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(113): error: argument of type "const void *" is incompatible with parameter of type "cudnnConvolutionBwdFilterAlgo_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(113): error: argument of type "double *" is incompatible with parameter of type "size_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(113): error: too few arguments in function call detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(128): error: argument of type "const void *" is incompatible with parameter of type "cudnnConvolutionBwdDataAlgo_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(128): error: argument of type "double *" is incompatible with parameter of type "size_t" detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

src/caffe/layers/cudnn_conv_layer.cu(128): error: too few arguments in function call detected during instantiation of "void caffe::CuDNNConvolutionLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &) [with Dtype=double]" (145): here

20 errors detected in the compilation of "/tmp/tmpxft_000057bc_00000000-13_cudnn_conv_layer.compute_35.cpp1.ii". make: *** [.build_release/cuda/src/caffe/layers/cudnn_conv_layer.o] Error 1

rahimentezari avatar Apr 06 '17 15:04 rahimentezari

Disable cudnn would work. The default crfasrnn caffe base does not support cudnn latest version. However, the crfasrnn branch does support latest cudnn.

bittnt avatar Apr 06 '17 22:04 bittnt

I could not build crfasrnn yet. would you please which link of caffe-crfasrnn i should use?

rahimentezari avatar Apr 09 '17 06:04 rahimentezari