py-faster-rcnn
py-faster-rcnn copied to clipboard
make test fails on cpu_only context
Dear all,
after following the instructions, at the point I am installing caffe, "make all" works fine, but "make test" fails, with the following output:
----------------:~/py-faster-rcnn/caffe-fast-rcnn$ make test
CXX src/caffe/test/test_roi_pooling_layer.cpp
src/caffe/test/test_roi_pooling_layer.cpp:28:26: error: ‘GPUDevice’ was not declared in this scope
typedef ::testing::Types<GPUDevice
^
./src/gtest/gtest.h:16997:48: error: template argument 1 is invalid
typedef ::testing::internal::TypeList< Types >::type
^
src/caffe/test/test_roi_pooling_layer.cpp:88:1: note: in expansion of macro ‘TYPED_TEST_CASE’
TYPED_TEST_CASE(ROIPoolingLayerTest, TestDtypesGPU);
^
./src/gtest/gtest.h:16991:43: error: expected initializer before ‘gtest_type_params_ROIPoolingLayerTest_’
define GTEST_TYPE_PARAMS_(TestCaseName) gtest_type_params_##TestCaseName##_
^
./src/gtest/gtest.h:16998:7: note: in expansion of macro ‘GTEST_TYPE_PARAMS_’ GTEST_TYPE_PARAMS_(CaseName) ^ src/caffe/test/test_roi_pooling_layer.cpp:88:1: note: in expansion of macro ‘TYPED_TEST_CASE’ TYPED_TEST_CASE(ROIPoolingLayerTest, TestDtypesGPU); ^ ./src/gtest/gtest.h:16991:43: error: ‘gtest_type_params_ROIPoolingLayerTest_’ was not declared in this scope
define GTEST_TYPE_PARAMS_(TestCaseName) gtest_type_params_##TestCaseName##_
^
./src/gtest/gtest.h:17014:11: note: in expansion of macro ‘GTEST_TYPE_PARAMS_’
GTEST_TYPE_PARAMS_(CaseName)>::Register(
^
src/caffe/test/test_roi_pooling_layer.cpp:90:1: note: in expansion of macro ‘TYPED_TEST’
TYPED_TEST(ROIPoolingLayerTest, TestGradient) {
^
./src/gtest/gtest.h:17014:39: error: template argument 3 is invalid
GTEST_TYPE_PARAMS_(CaseName)>::Register(
^
src/caffe/test/test_roi_pooling_layer.cpp:90:1: note: in expansion of macro ‘TYPED_TEST’
TYPED_TEST(ROIPoolingLayerTest, TestGradient) {
^
Makefile:563: recipe for target '.build_release/src/caffe/test/test_roi_pooling_layer.o' failed
make: *** [.build_release/src/caffe/test/test_roi_pooling_layer.o] Error 1
My understanding is that the tests have been run in gpu context only. Anyhow, how can someone fix this?
Thanks in advance!
I' having this issue as well.
src/caffe/test/test_roi_pooling_layer.cpp:28:26: error: no template named 'GPUDevice'; did you mean 'CPUDevice'?
typedef ::testing::Types<GPUDevice
I followed https://github.com/rbgirshick/py-faster-rcnn/issues/123 and I don't know whether it is related. Any one helps us here?
same here
src/caffe/test/test_roi_pooling_layer.cpp:28:26: error: ‘GPUDevice’ was not declared in this scope
typedef ::testing::Types<GPUDevice<float>, GPUDevice<double> > TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:41: error: template argument 1 is invalid
typedef ::testing::Types<GPUDevice<float>, GPUDevice<double> > TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:42: error: expected unqualified-id before ‘,’ token
typedef ::testing::Types<GPUDevice<float>, GPUDevice<double> > TestDtypesGPU;
^
src/caffe/test/test_roi_pooling_layer.cpp:28:53: error: expected initializer before ‘<’ token
typedef ::testing::Types<GPUDevice<float>, GPUDevice<double> > TestDtypesGPU;
^
In file included from src/caffe/test/test_roi_pooling_layer.cpp:14:0:
src/caffe/test/test_roi_pooling_layer.cpp:88:38: error: ‘TestDtypesGPU’ was not declared in this scope
TYPED_TEST_CASE(ROIPoolingLayerTest, TestDtypesGPU);
^
./src/gtest/gtest.h:16997:42: note: in definition of macro ‘TYPED_TEST_CASE’
typedef ::testing::internal::TypeList< Types >::type \
^
./src/gtest/gtest.h:16997:48: error: template argument 1 is invalid
typedef ::testing::internal::TypeList< Types >::type \
^
src/caffe/test/test_roi_pooling_layer.cpp:88:1: note: in expansion of macro ‘TYPED_TEST_CASE’
TYPED_TEST_CASE(ROIPoolingLayerTest, TestDtypesGPU);
^
./src/gtest/gtest.h:16991:43: error: expected initializer before ‘gtest_type_params_ROIPoolingLayerTest_’
# define GTEST_TYPE_PARAMS_(TestCaseName) gtest_type_params_##TestCaseName##_
^
./src/gtest/gtest.h:16998:7: note: in expansion of macro ‘GTEST_TYPE_PARAMS_’
GTEST_TYPE_PARAMS_(CaseName)
^
src/caffe/test/test_roi_pooling_layer.cpp:88:1: note: in expansion of macro ‘TYPED_TEST_CASE’
TYPED_TEST_CASE(ROIPoolingLayerTest, TestDtypesGPU);
^
./src/gtest/gtest.h:16991:43: error: ‘gtest_type_params_ROIPoolingLayerTest_’ was not declared in this scope
# define GTEST_TYPE_PARAMS_(TestCaseName) gtest_type_params_##TestCaseName##_
^
./src/gtest/gtest.h:17014:11: note: in expansion of macro ‘GTEST_TYPE_PARAMS_’
GTEST_TYPE_PARAMS_(CaseName)>::Register(\
^
src/caffe/test/test_roi_pooling_layer.cpp:90:1: note: in expansion of macro ‘TYPED_TEST’
TYPED_TEST(ROIPoolingLayerTest, TestGradient) {
^
./src/gtest/gtest.h:17014:39: error: template argument 3 is invalid
GTEST_TYPE_PARAMS_(CaseName)>::Register(\
^
src/caffe/test/test_roi_pooling_layer.cpp:90:1: note: in expansion of macro ‘TYPED_TEST’
TYPED_TEST(ROIPoolingLayerTest, TestGradient) {
^
make: *** [.build_release/src/caffe/test/test_roi_pooling_layer.o] Error 1
I just renamed the related file (test_roi_pooling_layer.cpp) in src/caffe/test, so the test simply skips it
@cemysf It doesn't work for me
make[3]: *** No rule to make target
../src/caffe/test/test_smooth_L1_loss_layer.cpp', needed by src/caffe/test/CMakeFiles/test.testbin.dir/test_smooth_L1_loss_layer.cpp.o'. Stop.
@wangha43 try to rename that file too, if it doesn't work, you may need to change other things (see #123)
Hi, I have the same error. @wangha43, did you solve it ?
Hello, I have the same error,too. Did anyone solve it?
I have the same error
I have the same error. Anybody knows the solution?
I have the same error