2016-03-06 172 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