要求安装Caffe

时间:2016-03-06 04:13:00

标签: caffe

我在Mac OS上安装了Caffe库,但是当我输入'make run test'时,我遇到了以下问题。我该怎么办?提前致谢。我的macbook不包含Cudas,这会影响安装吗?

.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

2 个答案:

答案 0 :(得分:7)

我有同样的问题。但我有专门用于运行Caffe的显卡,所以CPU_ONLY不是一个选项; - )

要检查是否与我的原因相同,请尝试运行CUDA样本deviceQuery example

我使用CUDA Guide runfile verifications

修复了
sudo chmod 0666 /dev/nvidia*

答案 1 :(得分:-1)

最后,我通过在Makefile.config中设置CPU_ONLY:= 1来找到解决方案(通过在Makefile.config中删除行中的'#'取消注释原来的“CPU_ONLY:= 1”)并重新运行命令“make clean” “,”make all“,然后”make test“,然后”make runtest“引用此链接 - https://github.com/BVLC/caffe/issues/736