caffe-yolo icon indicating copy to clipboard operation
caffe-yolo copied to clipboard

Build Error. Why it is obligatory to use GPU?

Open kmonachopoulos opened this issue 7 years ago • 4 comments

In file included from ./include/caffe/common.hpp:19:0, from ./include/caffe/blob.hpp:8, from ./include/caffe/layers/detection_loss_layer.hpp:6, from src/caffe/layers/detection_loss_layer.cpp:6: ./include/caffe/util/device_alternate.hpp:15:36: error: no ‘void caffe::DetectionLossLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>>&, const std::vector<caffe::Blob<Dtype>>&)’ member function declared in class ‘caffe::DetectionLossLayer<Dtype>’ const vector<Blob<Dtype>>& top) { NO_GPU; }
^ src/caffe/layers/detection_loss_layer.cpp:222:1: note: in expansion of macro ‘STUB_GPU’ STUB_GPU(DetectionLossLayer); ^ ./include/caffe/util/device_alternate.hpp:19:39: error: no ‘void caffe::DetectionLossLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>
>&, const std::vector&, const std::vector<caffe::Blob<Dtype>>&)’ member function declared in class ‘caffe::DetectionLossLayer<Dtype>’ const vector<Blob<Dtype>>& bottom) { NO_GPU; }
^ src/caffe/layers/detection_loss_layer.cpp:222:1: note: in expansion of macro ‘STUB_GPU’ STUB_GPU(DetectionLossLayer); ^ Makefile:572: recipe for target '.build_release/src/caffe/layers/detection_loss_layer.o' failed make: *** [.build_release/src/caffe/layers/detection_loss_layer.o] Error 1 make: *** Waiting for unfinished jobs....

kmonachopoulos avatar Jun 16 '17 16:06 kmonachopoulos

I encountered the same problem with you. Could I ask that have you solved it?

shihanjiao avatar Apr 26 '18 08:04 shihanjiao

No I haven't try anything. Maybe consider switching to another repo could help ...

kmonachopoulos avatar Apr 26 '18 11:04 kmonachopoulos

I am facing the same problem

shresthamalik avatar May 01 '18 01:05 shresthamalik

I found there is no Forward_gpu function in detection_loss_layer,so I think it can not use GPU to train.

mjjdick avatar May 09 '18 01:05 mjjdick