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

编译cpu版本时,编译出错 #5

Open
ming5432ming opened this issue Apr 25, 2018 · 1 comment
Open

编译cpu版本时,编译出错 #5

ming5432ming opened this issue Apr 25, 2018 · 1 comment

Comments

@ming5432ming
Copy link

src/caffe/layers/conv_dw_layer.cpp:125:3: error: use of undeclared identifier 'caffe_gpu_set'
caffe_gpu_set(weight_multiplier_.count(), Dtype(1), weight_multiplier_.mutable_gpu_data());
^
src/caffe/layers/conv_dw_layer.cpp:312:19: note: in instantiation of member function 'caffe::ConvolutionDepthwiseLayer::Reshape' requested here
INSTANTIATE_CLASS(ConvolutionDepthwiseLayer);
^
src/caffe/layers/conv_dw_layer.cpp:139:5: error: use of undeclared identifier 'caffe_gpu_set'
caffe_gpu_set(bias_multiplier_.count(), Dtype(1), bias_multiplier_.mutable_gpu_data());
^
src/caffe/layers/conv_dw_layer.cpp:125:3: error: use of undeclared identifier 'caffe_gpu_set'
caffe_gpu_set(weight_multiplier_.count(), Dtype(1), weight_multiplier_.mutable_gpu_data());
^
src/caffe/layers/conv_dw_layer.cpp:312:19: note: in instantiation of member function 'caffe::ConvolutionDepthwiseLayer::Reshape' requested here
INSTANTIATE_CLASS(ConvolutionDepthwiseLayer);
^
src/caffe/layers/conv_dw_layer.cpp:139:5: error: use of undeclared identifier 'caffe_gpu_set'
caffe_gpu_set(bias_multiplier_.count(), Dtype(1), bias_multiplier_.mutable_gpu_data());
^
4 errors generated.
make: *** [.build_release/src/caffe/layers/conv_dw_layer.o] Error 1
make: *** Waiting for unfinished jobs....

编译cpu版本时,新添加的层 conv_dw_layer.cpp中的 caffe_gpu_set报错, 该怎么修改呢???
多谢

@TingsongYu
Copy link
Owner

TingsongYu commented Apr 30, 2018 via email

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