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

Why is the different between gpu and cpu? #5

Open
chengshuai opened this issue May 12, 2017 · 1 comment
Open

Why is the different between gpu and cpu? #5

chengshuai opened this issue May 12, 2017 · 1 comment

Comments

@chengshuai
Copy link

I test the code and find the result is differnet between gpu and cpu? Could you tell me the reason?

@Zhaixuejun
Copy link

@chengshuai
您好!非常感谢您的分享,我在开始编译源码的时候出现以下错误:
CXX/LD -o .build_debug/tools/compute_image_mean.bin
.build_debug/lib/libcaffe.so: undefined reference to caffe::RegionLayer<double>::Forward_gpu(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)' .build_debug/lib/libcaffe.so: undefined reference to caffe::ReorgLayer::Backward_gpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<bool, std::allocator > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&)'
.build_debug/lib/libcaffe.so: undefined reference to caffe::ReorgLayer<double>::Forward_gpu(std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&, std::vector<caffe::Blob<double>*, std::allocator<caffe::Blob<double>*> > const&)' .build_debug/lib/libcaffe.so: undefined reference to caffe::RegionLayer::Backward_gpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<bool, std::allocator > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&)'
.build_debug/lib/libcaffe.so: undefined reference to caffe::RegionLayer<float>::Forward_gpu(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)' .build_debug/lib/libcaffe.so: undefined reference to caffe::RegionLayer::Backward_gpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<bool, std::allocator > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&)'
.build_debug/lib/libcaffe.so: undefined reference to caffe::ReorgLayer<float>::Forward_gpu(std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&, std::vector<caffe::Blob<float>*, std::allocator<caffe::Blob<float>*> > const&)' .build_debug/lib/libcaffe.so: undefined reference to caffe::ReorgLayer::Backward_gpu(std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&, std::vector<bool, std::allocator > const&, std::vector<caffe::Blob, std::allocator<caffe::Blob> > const&)'
collect2: error: ld returned 1 exit status
make: *** [.build_debug/tools/compute_image_mean.bin] Error 1
仔细看了一下,在添加的region层中确实未实现基于gpu的代码,但我在makefileConfig文件中已经把#CPU_ONLY := 1
改为了CPU_ONLY := 1
还是存在以上问题,请问是什么原因,应该如何解决?

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