Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA 8.0 compile error #22

Open
panovr opened this issue Feb 18, 2018 · 1 comment
Open

CUDA 8.0 compile error #22

panovr opened this issue Feb 18, 2018 · 1 comment

Comments

@panovr
Copy link

panovr commented Feb 18, 2018

py-RFCN-priv/caffe-priv/src/caffe/layers/box_annotator_ohem_layer.cu(50): 
warning: lambda expressions are a C++11 feature

py-RFCN-priv/caffe-priv/src/caffe/layers/box_annotator_ohem_layer.cu(49): 
error: a template argument may not reference a local type
detected during instantiation of "void caffe::BoxAnnotatorOHEMLayer<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]" 
(80): here

py-RFCN-priv/caffe-priv/src/caffe/layers/box_annotator_ohem_layer.cu(49): 
error: a template argument may not reference a local type
detected during instantiation of "void caffe::BoxAnnotatorOHEMLayer<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]" 
(80): here
@panovr panovr changed the title CuDNN 8.0 compile error CUDA 8.0 compile error Feb 18, 2018
@a61730607
Copy link
Contributor

a61730607 commented Mar 26, 2018

@panovr
because box_annotator_ohem_layer.cu need C++11 feature
So add . -std=c++11 . in your Makefile
or modify your_path/py-RFCN-priv/caffe-priv/CMakeLists.txt . line 48
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -std=c++11)

run
mkdir build
cd build
cmake ..
make all
make install

Hope to help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants