caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Error during make runtest

Open sujaynarumanchi opened this issue 12 years ago • 2 comments

Hi, I get the following error when I do make runtest. I am using Mac OS 10.9.

dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib Referenced from: /usr/local/opt/opencv/lib/libopencv_highgui.2.4.dylib Reason: Incompatible library version: libopencv_highgui.2.4.dylib requires version 33.0.0 or later, but libpng15.15.dylib provides version 29.0.0 make: *** [runtest] Trace/BPT trap: 5 sujayn:caffe-shellhammaer2 sujay.n$

I have set my DYLD_FALLBACK_LIBRARY_PATH as :/usr/local/cuda/lib:/Users/sujay.n/anaconda/lib:/usr/local/lib:/usr/lib:/usr/local/octave/3.8.0/lib and when I do'locate libpng15.15.dylib' it says /Users/sujay.n/anaconda/lib.

But I also have libpng16.16.dylib installed under Octave Library which is also in my fallback library path.

Can you please suggest what I should do?

Thanks in advance

sujaynarumanchi avatar Jul 18 '14 10:07 sujaynarumanchi

Hi, I have problem with make runtest too (setup- Ubuntu 12.04, CUDA 6 and FX580 card). This is a couple of examples below (differnt errors crop up each time I run it). Is my card the problem?

build/test/test_all.testbin 0 --gtest_shuffle Cuda number of devices: 1 Setting to use device 0 Current device id: 0 Note: Randomizing tests' orders with a seed of 98776 . [==========] Running 401 tests from 74 test cases. [----------] Global test environment set-up. [----------] 18 tests from NeuronLayerTest/0, where TypeParam = float [ RUN ] NeuronLayerTest/0.TestDropoutGradientCPU [ OK ] NeuronLayerTest/0.TestDropoutGradientCPU (125 ms) [ RUN ] NeuronLayerTest/0.TestReLUCPU [ OK ] NeuronLayerTest/0.TestReLUCPU (0 ms) [ RUN ] NeuronLayerTest/0.TestBNLLGradientGPU F0809 10:36:13.720201 3476 bnll_layer.cu:33] Check failed: error == cudaSuccess (8 vs. 0) invalid device function *** Check failure stack trace: *** @ 0x2b8df1e1fb7d google::LogMessage::Fail() @ 0x2b8df1e21c7f google::LogMessage::SendToLog() @ 0x2b8df1e1f76c google::LogMessage::Flush() @ 0x2b8df1e2251d google::LogMessageFatal::~LogMessageFatal() @ 0x628aee caffe::BNLLLayer<>::Forward_gpu() @ 0x48f488 caffe::GradientChecker<>::CheckGradientSingle() @ 0x498f7a caffe::GradientChecker<>::CheckGradientEltwise() @ 0x4b6e93 caffe::NeuronLayerTest_TestBNLLGradientGPU_Test<>::TestBody() @ 0x58d7dd testing::internal::HandleExceptionsInMethodIfSupported<>() @ 0x585601 testing::Test::Run() @ 0x5856e6 testing::TestInfo::Run() @ 0x585827 testing::TestCase::Run() @ 0x585b7e testing::internal::UnitTestImpl::RunAllTests() @ 0x58d35d testing::internal::HandleExceptionsInMethodIfSupported<>() @ 0x584c5e testing::UnitTest::Run() @ 0x4434dd main @ 0x2b8df4d9576d (unknown) @ 0x4482ad (unknown) make: *** [runtest] Aborted (core dumped)

build/test/test_all.testbin 0 --gtest_shuffle Cuda number of devices: 1 Setting to use device 0 Current device id: 0 Note: Randomizing tests' orders with a seed of 11491 . [==========] Running 401 tests from 74 test cases. [----------] Global test environment set-up. [----------] 3 tests from V0UpgradeTest [ RUN ] V0UpgradeTest.TestSimple [ OK ] V0UpgradeTest.TestSimple (1 ms) [ RUN ] V0UpgradeTest.TestImageNet [ OK ] V0UpgradeTest.TestImageNet (2 ms) [ RUN ] V0UpgradeTest.TestAllParams [ OK ] V0UpgradeTest.TestAllParams (1 ms) [----------] 3 tests from V0UpgradeTest (4 ms total)

[----------] 2 tests from GemmTest/0, where TypeParam = float [ RUN ] GemmTest/0.TestGemm [ OK ] GemmTest/0.TestGemm (102 ms) [ RUN ] GemmTest/0.TestGemv [ OK ] GemmTest/0.TestGemv (0 ms) [----------] 2 tests from GemmTest/0 (102 ms total)

[----------] 2 tests from HingeLossLayerTest/1, where TypeParam = double [ RUN ] HingeLossLayerTest/1.TestGradientGPU [ OK ] HingeLossLayerTest/1.TestGradientGPU (3 ms) [ RUN ] HingeLossLayerTest/1.TestGradientCPU [ OK ] HingeLossLayerTest/1.TestGradientCPU (3 ms) [----------] 2 tests from HingeLossLayerTest/1 (6 ms total)

[----------] 10 tests from LRNLayerTest/0, where TypeParam = float [ RUN ] LRNLayerTest/0.TestGPUGradientAcrossChannels F0809 11:26:26.392025 4136 lrn_layer.cu:95] Check failed: error == cudaSuccess (8 vs. 0) invalid device function *** Check failure stack trace: *** @ 0x2b7df7bd0b7d google::LogMessage::Fail() @ 0x2b7df7bd2c7f google::LogMessage::SendToLog() @ 0x2b7df7bd076c google::LogMessage::Flush() @ 0x2b7df7bd351d google::LogMessageFatal::~LogMessageFatal() @ 0x62a10c caffe::LRNLayer<>::CrossChannelForward_gpu() @ 0x629d3d caffe::LRNLayer<>::Forward_gpu() @ 0x55d84e caffe::LRNLayerTest_TestGPUGradientAcrossChannels_Test<>::TestBody() @ 0x58d7dd testing::internal::HandleExceptionsInMethodIfSupported<>() @ 0x585601 testing::Test::Run() @ 0x5856e6 testing::TestInfo::Run() @ 0x585827 testing::TestCase::Run() @ 0x585b7e testing::internal::UnitTestImpl::RunAllTests() @ 0x58d35d testing::internal::HandleExceptionsInMethodIfSupported<>() @ 0x584c5e testing::UnitTest::Run() @ 0x4434dd main @ 0x2b7dfab4676d (unknown) @ 0x4482ad (unknown) make: *** [runtest] Aborted (core dumped)

Will things work if I just use the CPU (i.e. I can live with CPU only) ? I could make all and make test. And so far, I am able to run the MNIST and CIFAR10 examples on CPU.

BTW, are there any groups where I can ask such newbie questions? Thanks.

ng0323 avatar Aug 07 '14 03:08 ng0323

Problems like these are usually do to compiling against a certain version of the library but then linking to another version at runtime.

Please continue the discussion on the caffe-users mailing list. As of the latest release we prefer to keep issues reserved for Caffe development. Thanks!

shelhamer avatar Aug 12 '14 00:08 shelhamer