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

Compilation error #5

Closed
ShubhamAgarwal12 opened this issue Jan 14, 2016 · 7 comments
Closed

Compilation error #5

ShubhamAgarwal12 opened this issue Jan 14, 2016 · 7 comments

Comments

@ShubhamAgarwal12
Copy link

Hey I am impressed by your results and want to try your edge detection code. I am getting this error while doing make all for hed. No error when i install original Caffe.

In file included from ./include/caffe/common.hpp:19:0,
from ./include/caffe/blob.hpp:8,
from ./include/caffe/layer.hpp:9,
from src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:5:
./include/caffe/util/device_alternate.hpp:30:39: error: no ‘void caffe::SigmoidCrossEntropyLossLayer::Backward_gpu(const std::vectorcaffe::Blob<Dtype_>&, const std::vector&, const std::vectorcaffe::Blob<Dtype_>&)’ member function declared in class ‘caffe::SigmoidCrossEntropyLossLayer’
const vector<Blob>& bottom) { NO_GPU; }
^
src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:118:1: note: in expansion of macro ‘STUB_GPU_BACKWARD’
STUB_GPU_BACKWARD(SigmoidCrossEntropyLossLayer, Backward);
^
Makefile:518: recipe for target '.build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o' failed
make: *
* [.build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o] Error 1

@s9xie s9xie closed this as completed Mar 16, 2016
@ShubhamAgarwal12
Copy link
Author

Thank you

On Tue, Mar 15, 2016 at 7:48 PM, Saining Xie notifications@github.com
wrote:

Closed #5 #5.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#5 (comment)

Shubham Agarwal
Graduate Student, UCLA

@samouha
Copy link

samouha commented Apr 3, 2016

I am facing the same problem, so can you tell me please how did you solve it ?

@ShubhamAgarwal12
Copy link
Author

Since my PC do not have any GPU, I commented the line that was throwing the error. It then worked fine.

@samouha
Copy link

samouha commented Apr 4, 2016

Which line do you mean please ?

@ShubhamAgarwal12
Copy link
Author

STUB_GPU_BACKWARD(SigmoidCrossEntropyLossLayer, Backward);

in "src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp".

holgerroth added a commit to rsummers11/CADLab that referenced this issue May 11, 2017
This caused an error with CPU only compilation. See s9xie/hed#5
@pearlmary
Copy link

I'm using caffe in cpu only mode. when i do make all in hed-master, it is throwing up the following error.

src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp:120:1: error: no ‘void caffe::SigmoidCrossEntropyLossLayer::Backward_gpu(const std::vector<caffe::Blob>&, const std::vector&, const std::vector<caffe::Blob>&)’ member function declared in class ‘caffe::SigmoidCrossEntropyLossLayer’
Makefile:518: recipe for target '.build_debug/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o' failed
make: *** [.build_debug/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o] Error 1
Any help is appreciated

@bing0037
Copy link

bing0037 commented Sep 17, 2018

In src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp try removing lines:

#ifdef CPU_ONLY STUB_GPU_BACKWARD(SigmoidCrossEntropyWeightedLossLayer, Backward); #endif

it may helps.
https://github.com/gkioxari/RstarCNN/issues/4#issuecomment-208710000

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

5 participants