2016-03-06 442 views
4

我在Mac OS上安裝Caffe庫,但是當我輸入'make run test'時,遇到以下問題。我該怎麼辦?提前致謝。我的MacBook不包含Cudas,這會影響安裝嗎?請求安裝Caffe


.build_release/test/test_all.testbin 0 --gtest_shuffle 
Cuda number of devices: 32767 
Setting to use device 0 
Current device id: 0 
Current device name: 
Note: Randomizing tests' orders with a seed of 14037 . 
[==========] Running 1927 tests from 259 test cases. 
[----------] Global test environment set-up. 
[----------] 4 tests from BlobSimpleTest/0, where TypeParam = f 
[ RUN  ] BlobSimpleTest/0.TestPointersCPUGPU 
E0306 11:45:15.035683 2126779136 common.cpp:104] Cannot create Cublas handle. Cublas won't be available. 
E0306 11:45:15.114891 2126779136 common.cpp:111] Cannot create Curand generator. Curand won't be available. 
F0306 11:45:15.115012 2126779136 syncedmem.cpp:55] Check failed: error == cudaSuccess (35 vs. 0) CUDA driver version is insufficient for CUDA runtime version 
*** Check failure stack trace: *** 
    @  0x10d2c976a google::LogMessage::Fail() 
    @  0x10d2c8f14 google::LogMessage::SendToLog() 
    @  0x10d2c93c7 google::LogMessage::Flush() 
    @  0x10d2cc679 google::LogMessageFatal::~LogMessageFatal() 
    @  0x10d2c9a4f google::LogMessageFatal::~LogMessageFatal() 
    @  0x10e023406 caffe::SyncedMemory::to_gpu() 
    @  0x10e022c5e caffe::SyncedMemory::gpu_data() 
    @  0x108021d9c caffe::BlobSimpleTest_TestPointersCPUGPU_Test<>::TestBody() 
    @  0x10849ba5c testing::internal::HandleExceptionsInMethodIfSupported<>() 
    @  0x10848a1ba testing::Test::Run() 
    @  0x10848b0e2 testing::TestInfo::Run() 
    @  0x10848b7d0 testing::TestCase::Run() 
    @  0x108491f86 testing::internal::UnitTestImpl::RunAllTests() 
    @  0x10849c264 testing::internal::HandleExceptionsInMethodIfSupported<>() 
    @  0x108491c99 testing::UnitTest::Run() 
    @  0x107f8c89a main 
    @  0x7fff903e15c9 start 
    @    0x3 (unknown) 
make: *** [runtest] Abort trap: 6 

回答

0

最後,我發現通過設置CPU_ONLY的溶液:在Makefile.config = 1(由線去除 '#' 取消對原來的 「CPU_ONLY:= 1 Makefile.config」)並重新運行命令「make clean」,「make all」,然後「make test」,然後「make runtest」參考此鏈接 - https://github.com/BVLC/caffe/issues/736

+2

這只是「修復」的事情**不**使用昂貴的圖形卡。 – Ketil

5

我有同樣的問題。但我有一個顯卡專門在其上運行來自Caffe,所以CPU_ONLY不是一種選擇;-)

要檢查它是否是同一個原因是我的,嘗試運行CUDA樣品deviceQuery example

我固定使用CUDA Guide runfile verifications

sudo chmod 0666 /dev/nvidia* 
+0

救了我的命。謝謝 –

+0

@RafaelRuiz樂於助人:-) – piercus