torrvision / crfasrnn

This repository contains the source code for the semantic image segmentation method described in the ICCV 2015 paper: Conditional Random Fields as Recurrent Neural Networks. http://crfasrnn.torr.vision/
Other
1.34k stars 462 forks source link

Error while compiling #118

Open rahimentezari opened 7 years ago

rahimentezari commented 7 years ago

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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob *>> &) [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::Backward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<__nv_bool, std::allocator<__nv_bool>> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [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

bittnt commented 7 years ago

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

rahimentezari commented 7 years ago

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