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

compiling error and testing error with RPN_BF caffe on ubuntu14.04 #8

Closed
brisker opened this issue Sep 28, 2016 · 5 comments
Closed

Comments

@brisker
Copy link

brisker commented Sep 28, 2016

after run "make all", the error looks like this:

CXX src/caffe/syncedmem.cpp
In file included from ./include/caffe/blob.hpp:9:0,
from src/caffe/blob.cpp:4:
./include/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
^
./include/caffe/proto/caffe.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
^
./include/caffe/proto/caffe.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.

Then I simply run "pip install protobuf" and the error is gone, but when I run "make test", there is a new error reads like this:

CXX src/gtest/gtest-all.cpp
src/caffe/test/test_im2col_kernel.cu(88): error: no instance of function template "caffe::im2col_cpu" matches the argument list
argument types are: (const float *, int, int, int, int, int, int, int, int, int, float *)
detected during:
instantiation of "void caffe::Im2colKernelTest_TestGPU_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_=float]"
./src/gtest/gtest.h(7209): here
......

2 errors detected in the compilation of "/tmp/tmpxft_00004d75_00000000-16_test_im2col_kernel.compute_50.cpp1.ii".
make: *** [.build_release/cuda/src/caffe/test/test_im2col_kernel.o] 错误 1

Could you please give some advice? Thanks a lot!
@zhangliliang

@zhangliliang
Copy link
Owner

Hi,

This error might be that I only re-write the im2col in the layers but no re-write the corresponding test code.

You might try to make clean the project and use make (not make all, which might include the test part) for compiling the project.

@brisker
Copy link
Author

brisker commented Sep 28, 2016

I have tried "make -j6" and "make test -j6", but still the same error.
@zhangliliang

@brisker brisker changed the title compiling error and testing error with your caffe on ubuntu14.04 compiling error and testing error with RPN_BF caffe on ubuntu14.04 Sep 28, 2016
@brisker
Copy link
Author

brisker commented Sep 28, 2016

Did you mean that I do not need to run "make test" ?
@zhangliliang

@zhangliliang
Copy link
Owner

Yes, only make and make mat.

@zhangliliang
Copy link
Owner

@brisker

I fix it via removing the test_im2col_kernel.cu

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