NVIDIA / gpu-rest-engine

A REST API for Caffe using Docker and Go
BSD 3-Clause "New" or "Revised" License
421 stars 94 forks source link

make runtest fails on custom caffe #6

Closed siddharthm83 closed 7 years ago

siddharthm83 commented 7 years ago

@flx42 : cloned caffe as per: git clone --depth 1 -b bvlc_inference https://github.com/flx42/caffe.git

make runtest fails with:

[ RUN      ] HingeLossLayerTest/2.TestGradientL2
F1229 08:56:20.104545 12296 common.cpp:23] Check failed: thread_instance_.get() Caffe context not initialized
*** Check failure stack trace: ***
    @     0x2b1642541daa  (unknown)
    @     0x2b1642541ce4  (unknown)
    @     0x2b16425416e6  (unknown)
    @     0x2b1642544687  (unknown)
    @     0x2b1641796fcd  caffe::Caffe::Get()
    @           0xbdd2ad  caffe::HingeLossLayerTest<>::HingeLossLayerTest()
    @           0xbdd66b  testing::internal::TestFactoryImpl<>::CreateTest()
    @           0xd966a3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xd8d045  testing::TestInfo::Run()
    @           0xd8d165  testing::TestCase::Run()
    @           0xd8feb8  testing::internal::UnitTestImpl::RunAllTests()
    @           0xd90157  testing::UnitTest::Run()
    @           0x89471f  main
    @     0x2b1647f41f45  (unknown)
    @           0x897252  (unknown)
    @              (nil)  (unknown)
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Aborted (core dumped)
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
make: *** [runtest] Error 2

Perhaps it has something to do with flx42/caffe@1a5187a ?

flx42 commented 7 years ago

That's normal, this patch is only meant to be used with this inference code.