make runtest error: Check failed: status == CUBLAS_STATUS_SUCCESS (1 vs. 0) CUBLAS_STATUS_NOT_INIT

568 views
Skip to first unread message

lu.zh...@gmail.com

unread,
Feb 12, 2018, 5:45:44 AM2/12/18
to Caffe Users
I want to install caffe on my own computer.  But when I run the make runtest command, I have such error below:

.build_release/test/test_all.testbin 0 --gtest_shuffle
Cuda number of devices: 1
Setting to use device 0
Current device id: 0
Current device name: GeForce GTX 970
Note: Randomizing tests' orders with a seed of 81204 .
[==========] Running 2063 tests from 271 test cases.
[----------] Global test environment set-up.
[----------] 9 tests from AccuracyLayerTest/3, where TypeParam = caffe::GPUDevice<double>
[ RUN      ] AccuracyLayerTest/3.TestForwardPerClassWithIgnoreLabel

E0212 11:08:34.470005 20064 common.cpp:114] Cannot create Cublas handle. Cublas won't be available.
F0212 11:08:34.650873 20064 math_functions.cu:146] Check failed: status == CUBLAS_STATUS_SUCCESS (1 vs. 0)  CUBLAS_STATUS_NOT_INITIALIZED
*** Check failure stack trace: ***
    @     0x7f9f1e7435cd  google::LogMessage::Fail()
    @     0x7f9f1e745433  google::LogMessage::SendToLog()
    @     0x7f9f1e74315b  google::LogMessage::Flush()
    @     0x7f9f1e745e1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f9f1c00ceea  caffe::caffe_gpu_asum<>()
    @     0x7f9f1c03b608  caffe::AccuracyLayer<>::Forward_gpu()
    @           0x472a59  caffe::Layer<>::Forward()
    @           0x5629e2  caffe::AccuracyLayerTest_TestForwardPerClassWithIgnoreLabel_Test<>::TestBody()
    @           0x8f8ab3  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0x8f20ca  testing::Test::Run()
    @           0x8f2218  testing::TestInfo::Run()
    @           0x8f22f5  testing::TestCase::Run()
    @           0x8f35cf  testing::internal::UnitTestImpl::RunAllTests()
    @           0x8f38f3  testing::UnitTest::Run()
    @           0x46899d  main
    @     0x7f9f1b1fd830  __libc_start_main
    @           0x470099  _start
    @              (nil)  (unknown)
Makefile:532: recipe for target 'runtest' failed
make: *** [runtest] Aborted (core dumped)

My system configuration:
Operating system:Ubuntu 16.04.3 LTS
CUDA version: CUDA 8.0.61
Python : python 2.7
nvidia-smi:
Mon Feb 12 11:12:12 2018      
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.111                Driver Version: 384.111                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 970     Off  | 00000000:01:00.0  On |                  N/A |
|  0%   49C    P8    16W / 200W |    281MiB /  4029MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                              
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1257      G   /usr/lib/xorg/Xorg                           202MiB |
|    0      2073      G   compiz                                        75MiB |
+-----------------------------------------------------------------------------+
sudo ubuntu-drivers devices:
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd000013C2sv00001462sd00003160bc03sc00i00
model    : GM204 [GeForce GTX 970]
vendor   : NVIDIA Corporation
driver   : nvidia-384 - distro non-free
driver   : nvidia-387 - third-party free
driver   : nvidia-390 - third-party free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

== cpu-microcode.py ==
driver   : intel-microcode - distro free

lu.zh...@gmail.com

unread,
Feb 12, 2018, 5:59:07 AM2/12/18
to Caffe Users
solved by: sudo make runtest

在 2018年2月12日星期一 UTC+1上午11:45:44,lu.zh...@gmail.com写道:

Yuhang Lu

unread,
Apr 26, 2018, 10:40:48 PM4/26/18
to Caffe Users
This also works for me. 
"make runtest" failed, but "sudo make runtest" passed.
I am not sure what does it mean. Is your Caffe still running properly?
Reply all
Reply to author
Forward
0 new messages