ShaoqingRen / faster_rcnn

Faster R-CNN
Other
2.7k stars 1.22k forks source link

caffe make error #171

Open bianlongpeng opened 7 years ago

bianlongpeng commented 7 years ago

I write a new layer in caffe, which named by deformable_conv_layer.cu and writed by C++.But when I make caffe with GPU,there are some errors, the errors are same type as follow:

src/caffe/layers/deformable_conv_layer.cu(19): error: function "caffe::BaseDeforConvolutionLayer::deformable_im2col [with Dtype=float]" ./include/caffe/layers/base_conv_layers.hpp(169): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer:: Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=float]" (95): here

src/caffe/layers/deformable_conv_layer.cu(65): error: function "caffe::BaseDeforConvolutionLayer::deformable_im2col [with Dtype=float]" ./include/caffe/layers/base_conv_layers.hpp(169): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::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]" (95): here

src/caffe/layers/deformable_conv_layer.cu(82): error: function "caffe::BaseDeforConvolutionLayer::deformable_col2im_offset_gpu [with Dtype=float]" ./include/caffe/layers/base_conv_layers.hpp(182): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::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]" (95): here

src/caffe/layers/deformable_conv_layer.cu(83): error: function "caffe::BaseDeforConvolutionLayer::deformable_col2im [with Dtype=float]" ./include/caffe/layers/base_conv_layers.hpp(176): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::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]" (95): here

src/caffe/layers/deformable_conv_layer.cu(19): error: function "caffe::BaseDeforConvolutionLayer::deformable_im2col [with Dtype=double]" ./include/caffe/layers/base_conv_layers.hpp(169): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::Forward_gpu(const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &, const std::vector<caffe::Blob , std::allocator<caffe::Blob >> &) [with Dtype=double]" (95): here

src/caffe/layers/deformable_conv_layer.cu(65): error: function "caffe::BaseDeforConvolutionLayer::deformable_im2col [with Dtype=double]" ./include/caffe/layers/base_conv_layers.hpp(169): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::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]" (95): here

src/caffe/layers/deformable_conv_layer.cu(82): error: function "caffe::BaseDeforConvolutionLayer::deformable_col2im_offset_gpu [with Dtype=double]" ./include/caffe/layers/base_conv_layers.hpp(182): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::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]" (95): here

src/caffe/layers/deformable_conv_layer.cu(83): error: function "caffe::BaseDeforConvolutionLayer::deformable_col2im [with Dtype=double]" ./include/caffe/layers/base_conv_layers.hpp(176): here is inaccessible detected during instantiation of "void caffe::DeformableConvolutionLayer::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]" (95): here

8 errors detected in the compilation of "/tmp/tmpxft_00007fce_00000000-9_deformable_conv_layer.compute_61.cpp1.ii

what are these errors mean? what should I do?