caffe make runtest 错误解决

迦南C的博客,转载请注明出处。

    • 当caffe编译 make runtest 出现如上错误时,原因是多gpu支持的bug。先 export CUDA_VISIBLE_DEVICES=0 ,再make runtest 即可解决。

)

*** Aborted at 1475986823 (unix time) try “date -d @1475986823” if you are using GNU date ***
PC: @ 0x7f13e92fd512 (unknown)
*** SIGSEGV (@0x19ae2000) received by PID 14082 (TID 0x7f13f0ac7ac0) from PID 430841856; stack trace: ***
@ 0x7f13e958a3d0 (unknown)
@ 0x7f13e92fd512 (unknown)
@ 0x7f13e9eae280 std::vector<>::_M_erase()
@ 0x7f13e9eac494 caffe::DevicePair::compute()
@ 0x7f13e9eb1d50 caffe::P2PSync<>::Prepare()
@ 0x7f13e9eb285e caffe::P2PSync<>::Run()
@ 0x5b409e caffe::GradientBasedSolverTest<>::TestLeastSquaresUpdate()
@ 0x5b49ff caffe::SGDSolverTest_TestLeastSquaresUpdateWithWeightDecay_Test<>::TestBody()
@ 0x91ad53 testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x91436a testing::Test::Run()
@ 0x9144b8 testing::TestInfo::Run()
@ 0x914595 testing::TestCase::Run()
@ 0x91586f testing::internal::UnitTestImpl::RunAllTests()
@ 0x915b93 testing::UnitTest::Run()
@ 0x46d9ed main
@ 0x7f13e91d0830 __libc_start_main
@ 0x475459 _start
@ 0x0 (unknown)
Makefile:526: recipe for target ‘runtest’ failed
make: *** [runtest] Segmentation fault (core dumped)

当caffe编译 make runtest 出现如上错误时,原因是多gpu支持的bug。先 export CUDA_VISIBLE_DEVICES=0 ,再make runtest 即可解决。

export CUDA_VISIBLE_DEVICES=0,其中,GPU的选择应与你的Makefile.config里的设置相同:TEST_GPUID := 0

你可能感兴趣的:(编译错误总结)