-
Notifications
You must be signed in to change notification settings - Fork 76
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
Comments
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. |
I have tried "make -j6" and "make test -j6", but still the same error. |
Did you mean that I do not need to run "make test" ? |
Yes, only |
I fix it via removing the test_im2col_kernel.cu |
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
The text was updated successfully, but these errors were encountered: