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

make error #17

Open
txacuhan opened this issue Dec 24, 2016 · 5 comments
Open

make error #17

txacuhan opened this issue Dec 24, 2016 · 5 comments

Comments

@txacuhan
Copy link

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

Any help would be appreciated.
I am compiling this on Ubuntu 16.04 without cudnn

Thanks so much

@tianzhi0549
Copy link
Owner

@txacuhan The errors happened because the program didn't support the CPU only mode then. We've updated it and it supports CPU only mode now. Please download it again. Thank you:-).

@txacuhan
Copy link
Author

@tianzhi0549 Thanks

@txacuhan
Copy link
Author

txacuhan commented Mar 3, 2017

@tianzhi0549 hi
The errors happened again on OX 10.12.

CXX src/caffe/blob.cpp
CXX src/caffe/data_reader.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/internal_thread.cpp
CXX src/caffe/layer.cpp
CXX src/caffe/layer_factory.cpp
In file included from src/caffe/layer_factory.cpp:11:
In file included from ./include/caffe/vision_layers.hpp:10:
In file included from ./include/caffe/common_layers.hpp:12:
./include/caffe/loss_layers.hpp:13:10: fatal error: 'tr1/unordered_map' file not found
#include <tr1/unordered_map>
^
1 error generated.
make: *** [.build_release/src/caffe/layer_factory.o] Error 1

Thank you very much

@HamdiHamed1992
Copy link

HamdiHamed1992 commented Mar 24, 2017

go to the loss_layers.hpp and change tr1/unordered_map with unordered_map and remove the ::t r:: also

@ZhangXinNan
Copy link

@HamdiHamed1992 我在我的macbookpro上编译通过,你说的方法好使。

//#include <tr1/unordered_map>
#include <unordered_map>
... ...
//typedef std::tr1::unordered_map<int, vector<int> > tmap;
    typedef std::unordered_map<int, vector<int> > tmap;

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

4 participants