Error while installing Caffe on Ubuntu 15.04; make runtest unknown error

540 views
Skip to first unread message

Ankit Dhall

unread,
Mar 7, 2016, 12:37:46 PM3/7/16
to Caffe Users
Hello,
I am new to caffe and was recently installing it on Ubuntu 15.04 with NVIDIA GeForce 920M.
I installed the NVIDIA driver through display settings.

Followed the instructions on the caffe installation page for ubuntu and used cmake to build files.

mkdir build
cd build
cmake ..
make all
make install
make runtest

Everything was error free until I ran make runtest. 
I got the following:



Scanning dependencies of target runtest
Cuda number of devices: 0
Current device id: 0
Current device name:
Note: Randomizing tests' orders with a seed of 86763 .
[==========] Running 1927 tests from 259 test cases.
[----------] Global test environment set-up.
[----------] 15 tests from ConvolutionLayerTest/1, where TypeParam = caffe::CPUDevice<double>
[ RUN      ] ConvolutionLayerTest/1.TestSetup
E0307 23:01:26.339383  5275 common.cpp:113] Cannot create Cublas handle. Cublas won'
t be available.
E0307
23:01:26.351411  5275 common.cpp:120] Cannot create Curand generator. Curand won't be available.
[       OK ] ConvolutionLayerTest/1.TestSetup (24 ms)
[ RUN      ] ConvolutionLayerTest/1.TestGradient3D
E0307 23:01:26.352216  5275 common.cpp:140] Curand not available. Skipping setting the curand seed.
[       OK ] ConvolutionLayerTest/1.TestGradient3D (533 ms)
[ RUN      ] ConvolutionLayerTest/1.TestNDAgainst2D
[       OK ] ConvolutionLayerTest/1.TestNDAgainst2D (375 ms)
[ RUN      ] ConvolutionLayerTest/1.TestGradient
[       OK ] ConvolutionLayerTest/1.TestGradient (73 ms)
[ RUN      ] ConvolutionLayerTest/1.TestSimpleConvolutionGroup
[       OK ] ConvolutionLayerTest/1.TestSimpleConvolutionGroup (0 ms)
[ RUN      ] ConvolutionLayerTest/1.TestSimpleConvolution
[       OK ] ConvolutionLayerTest/1.TestSimpleConvolution (0 ms)
[ RUN      ] ConvolutionLayerTest/1.TestDilatedConvolution
[       OK ] ConvolutionLayerTest/1.TestDilatedConvolution (1 ms)
[ RUN      ] ConvolutionLayerTest/1.Test1x1Gradient
[       OK ] ConvolutionLayerTest/1.Test1x1Gradient (586 ms)
[ RUN      ] ConvolutionLayerTest/1.TestGradientGroup
[       OK ] ConvolutionLayerTest/1.TestGradientGroup (22 ms)
[ RUN      ] ConvolutionLayerTest/1.TestDilated3DConvolution
[       OK ] ConvolutionLayerTest/1.TestDilated3DConvolution (9 ms)
[ RUN      ] ConvolutionLayerTest/1.TestSobelConvolution
[       OK ] ConvolutionLayerTest/1.TestSobelConvolution (0 ms)
[ RUN      ] ConvolutionLayerTest/1.Test0DConvolution
[       OK ] ConvolutionLayerTest/1.Test0DConvolution (0 ms)
[ RUN      ] ConvolutionLayerTest/1.Test1x1Convolution
[       OK ] ConvolutionLayerTest/1.Test1x1Convolution (0 ms)
[ RUN      ] ConvolutionLayerTest/1.TestDilatedGradient
[       OK ] ConvolutionLayerTest/1.TestDilatedGradient (17 ms)
[ RUN      ] ConvolutionLayerTest/1.TestSimple3DConvolution
[       OK ] ConvolutionLayerTest/1.TestSimple3DConvolution (2 ms)
[----------] 15 tests from ConvolutionLayerTest/1 (1643 ms total)


[----------] 8 tests from LRNLayerTest/3, where TypeParam = caffe::GPUDevice<double>
[ RUN      ] LRNLayerTest/3.TestForwardWithinChannel
F0307 23:01:27.971222  5275 syncedmem.hpp:18] Check failed: error == cudaSuccess (30 vs. 0)  unknown error
*** Check failure stack trace: ***
    @     0x7f7fcb0efea4  (unknown)
    @     0x7f7fcb0efdeb  (unknown)
    @     0x7f7fcb0ef7bf  (unknown)
    @     0x7f7fcb0f2a35  (unknown)
    @     0x7f7fcbde4d11  caffe::SyncedMemory::mutable_cpu_data()
    @     0x7f7fcbcc4a21  caffe::Blob<>::Reshape()
    @     0x7f7fcbcc4e7a  caffe::Blob<>::Reshape()
    @           0xb1da15  caffe::LRNLayerTest<>::SetUp()
    @           0xd03d63  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xcfaec6  testing::Test::Run()
    @           0xcfb078  testing::TestInfo::Run()
    @           0xcfb185  testing::TestCase::Run()
    @           0xcfc4d8  testing::internal::UnitTestImpl::RunAllTests()
    @           0xcfc7b3  testing::UnitTest::Run()
    @           0x83c44f  main
    @     0x7f7fc572da40  (unknown)
    @           0x83ee89  _start
    @              (nil)  (unknown)
Aborted (core dumped)
src/caffe/test/CMakeFiles/runtest.dir/build.make:49: recipe for target '
src/caffe/test/CMakeFiles/runtest' failed
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Error 134
CMakeFiles/Makefile2:304: recipe for target '
src/caffe/test/CMakeFiles/runtest.dir/all' failed
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
CMakeFiles/Makefile2:312: recipe for target '
src/caffe/test/CMakeFiles/runtest.dir/rule' failed
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
Makefile:229: recipe for target '
runtest' failed
make: *** [runtest] Error 2


What could be a possible error here and how could I fix it?

Thanks.
Regards,
Ankit

Ankit Dhall

unread,
Mar 8, 2016, 7:28:05 AM3/8/16
to Caffe Users
Figured out the problem. Running with super user privileges worked.


sudo make runtest
Reply all
Reply to author
Forward
0 new messages