运行 caffe 出现错误检查失败:错误 == cudaSuccess (30 vs. 0) 未知错误

运行 caffe 出现错误检查失败:错误 == cudaSuccess (30 vs. 0) 未知错误

我正在尝试运行 caffe,以便我可以通过 python 使用它。为此,我遵循了教程。我在 Ubuntu 16.04 上。

当我到达时make runtest出现错误:

$ make runtest
CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_AddMatVectorDefaultTransform_Test<caffe::CPUDevice<float> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0x333): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0x3f5): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0x407): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_AddMatVectorDefaultTransform_Test<caffe::GPUDevice<float> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0x333): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0x3f5): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0x407): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_TestSetBatchSize_Test<caffe::CPUDevice<float> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0x340): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0x407): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0x418): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0xcc0): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0xd82): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIfEEE8TestBodyEv]+0xd93): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_TestSetBatchSize_Test<caffe::GPUDevice<float> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0x341): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0x408): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0x41a): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0xcd5): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0xd97): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIfEEE8TestBodyEv]+0xda9): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_AddMatVectorDefaultTransform_Test<caffe::CPUDevice<double> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0x333): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0x3f5): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0x407): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_AddMatVectorDefaultTransform_Test<caffe::GPUDevice<double> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0x333): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0x3f5): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe53MemoryDataLayerTest_AddMatVectorDefaultTransform_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0x407): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_TestSetBatchSize_Test<caffe::CPUDevice<double> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0x386): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0x44d): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0x45e): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0xd20): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0xde2): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9CPUDeviceIdEEE8TestBodyEv]+0xdf3): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_memory_data_layer.o: In function `caffe::MemoryDataLayerTest_TestSetBatchSize_Test<caffe::GPUDevice<double> >::TestBody()':
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0x340): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0x407): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0x418): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0xcc0): undefined reference to `vtable for cv::_InputArray'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0xd82): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_memory_data_layer.cpp:(.text._ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv[_ZN5caffe41MemoryDataLayerTest_TestSetBatchSize_TestINS_9GPUDeviceIdEEE8TestBodyEv]+0xd93): undefined reference to `cv::randu(cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&)'
.build_release/src/caffe/test/test_io.o: In function `caffe::ReadImageToDatumReference(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, int, bool, caffe::Datum*)':
test_io.cpp:(.text+0x1d9): undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
test_io.cpp:(.text+0x216): undefined reference to `cv::_OutputArray::_OutputArray(cv::Mat&)'
test_io.cpp:(.text+0x228): undefined reference to `cv::_InputArray::_InputArray(cv::Mat const&)'
collect2: error: ld returned 1 exit status
Makefile:597: recipe for target '.build_release/test/test_all.testbin' failed
make: *** [.build_release/test/test_all.testbin] Error 1

当我使用 cmake runtest 时出现错误

$ make runtest
[  1%] Built target proto
[ 68%] Built target caffe
[ 70%] Built target gtest
[100%] Built target test.testbin
Cuda number of devices: 0
Current device id: 0
Current device name: 
Note: Randomizing tests' orders with a seed of 56045 .
[==========] Running 2021 tests from 267 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from ThresholdLayerTest/1, where TypeParam = caffe::CPUDevice<double>
[ RUN      ] ThresholdLayerTest/1.TestSetup
E1017 10:41:43.387125 23233 common.cpp:113] Cannot create Cublas handle. Cublas won't be available.
E1017 10:41:43.399794 23233 common.cpp:120] Cannot create Curand generator. Curand won't be available.
E1017 10:41:43.399904 23233 common.cpp:140] Curand not available. Skipping setting the curand seed.
[       OK ] ThresholdLayerTest/1.TestSetup (26 ms)
[ RUN      ] ThresholdLayerTest/1.Test
[       OK ] ThresholdLayerTest/1.Test (0 ms)
[ RUN      ] ThresholdLayerTest/1.Test2
[       OK ] ThresholdLayerTest/1.Test2 (0 ms)
[----------] 3 tests from ThresholdLayerTest/1 (26 ms total)

[----------] 2 tests from EuclideanLossLayerTest/2, where TypeParam = caffe::GPUDevice<float>
[ RUN      ] EuclideanLossLayerTest/2.TestGradient
F1017 10:41:43.400226 23233 syncedmem.hpp:18] Check failed: error == cudaSuccess (30 vs. 0)  unknown error
*** Check failure stack trace: ***
    @     0x7f6dcb6975cd  google::LogMessage::Fail()
    @     0x7f6dcb699433  google::LogMessage::SendToLog()
    @     0x7f6dcb69715b  google::LogMessage::Flush()
    @     0x7f6dcb699e1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f6dcc40dae1  caffe::SyncedMemory::mutable_cpu_data()
    @     0x7f6dcc409cb1  caffe::Blob<>::Reshape()
    @     0x7f6dcc40a17f  caffe::Blob<>::Reshape()
    @     0x7f6dcc40a22c  caffe::Blob<>::Blob()
    @           0xa8e45e  caffe::EuclideanLossLayerTest<>::EuclideanLossLayerTest()
    @           0xa8e7db  testing::internal::TestFactoryImpl<>::CreateTest()
    @           0xd856b3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xd7e533  testing::TestInfo::Run()
    @           0xd7e6c5  testing::TestCase::Run()
    @           0xd8025f  testing::internal::UnitTestImpl::RunAllTests()
    @           0xd80583  testing::UnitTest::Run()
    @           0x86e16d  main
    @     0x7f6dc3905830  __libc_start_main
    @           0x872b39  _start
    @              (nil)  (unknown)
Aborted (core dumped)
src/caffe/test/CMakeFiles/runtest.dir/build.make:57: recipe for target 'src/caffe/test/CMakeFiles/runtest' failed
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Error 134
CMakeFiles/Makefile2:328: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/all' failed
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
CMakeFiles/Makefile2:335: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/rule' failed
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
Makefile:240: recipe for target 'runtest' failed
make: *** [runtest] Error 2

第一个错误表明 opencv 可能有问题,但是当我执行 python import cv2 时没有显示任何错误。

我试图用它来运行(并随后更改)代码https://github.com/fzliu/style-transfer当我尝试运行时,它给出了错误

/style-transfer$ python style.py -s /home/thijs/workspace/style-transfer/images/content/johannesburg.jpg -c /home/thijs/workspace/style-transfer/images/content/nanjing.jpg
style.py:main:13:22:16.988 -- Starting style transfer.
WARNING: Logging before InitGoogleLogging() is written to STDERR
F1017 13:22:17.016680 28527 common.cpp:151] Check failed: error == cudaSuccess (30 vs. 0)  unknown error
*** Check failure stack trace: 

我有一台 NVIDIA Quadro K1000M,其 nvidia 二进制驱动程序版本为 340.96。否则建议尝试,sudo apt-get install nvidia-modprobe但那并没有解决问题。与错误代码 30 相关的错误消息是
/** * 这表明发生了未知的内部错误。 */ cudaErrorUnknown = 30,

我正在运行以下 cudas 版本

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

按照评论中的描述进行编辑我查看了驱动程序/cuda 版本并将驱动程序更新为新版本。我现在收到错误

F1024 14:48:14.636173 23574 syncedmem.hpp:18] Check failed: error == cudaSuccess (11 vs. 0)  invalid argument
*** Check failure stack trace: ***
    @     0x7fdbb836e5cd  google::LogMessage::Fail()
    @     0x7fdbb8370433  google::LogMessage::SendToLog()
    @     0x7fdbb836e15b  google::LogMessage::Flush()
    @     0x7fdbb8370e1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7fdbb90e4ae1  caffe::SyncedMemory::mutable_cpu_data()
    @     0x7fdbb90df631  caffe::Blob<>::Reshape()
    @     0x7fdbb90dfaff  caffe::Blob<>::Reshape()
    @     0x7fdbb90dfbac  caffe::Blob<>::Blob()
    @           0xb98c3c  caffe::NeuronLayerTest<>::NeuronLayerTest()
    @           0xb9965b  testing::internal::TestFactoryImpl<>::CreateTest()
    @           0xd856b3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xd7e533  testing::TestInfo::Run()
    @           0xd7e6c5  testing::TestCase::Run()
    @           0xd8025f  testing::internal::UnitTestImpl::RunAllTests()
    @           0xd80583  testing::UnitTest::Run()
    @           0x86e16d  main
    @     0x7fdbb05dc830  __libc_start_main
    @           0x872b39  _start
    @              (nil)  (unknown)
Aborted (core dumped)
src/caffe/test/CMakeFiles/runtest.dir/build.make:57: recipe for target 'src/caffe/test/CMakeFiles/runtest' failed
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Error 134
CMakeFiles/Makefile2:328: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/all' failed
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
CMakeFiles/Makefile2:335: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/rule' failed
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
Makefile:240: recipe for target 'runtest' failed
make: *** [runtest] Error 2

有人知道这是什么原因造成的吗?

答案1

最后,事实证明您需要拥有与 cuda 版本相匹配的正确版本的 nvidia 驱动程序。在这种情况下,问题是由较旧的驱动程序引起的,将驱动程序更新到 361 版(而不是 340 版)可解决此问题。或者,我可能已将 cuda 降级到 6.5 版。

感谢 veranedi 提出这个建议。

相关内容