Can't run the tests in caffe-parallel version #1160

3,202 views
Skip to first unread message

deepcnn

unread,
Sep 26, 2014, 1:11:59 AM9/26/14
to caffe...@googlegroups.com
The previous discussion located at https://github.com/BVLC/caffe/issues/1160#issuecomment-56918363, as the someone tell me That I should post the installing information at caffe user mailing list, and because my problem still not solved, so I post the question here gain! Thanks very much!
wkal commented 

Hello!, every body. I had tried to compile the parallel version of caffe, but I found that it can make all and make test, but can't run the make runtest. The error info is that error while loading shared libraries:libcudart.so.6.5: cannot open shared object file: No shuch file or directory. I had installed the cuDNN version caffe and common caffe, they are both ok and not appear this error. Can any expert help me? Thanks in advance!

Ronghang Hu

Add /usr/local/cuda-6.5 to your LD_LIBRARY_PATH.

Please ask installation issue on caffe user mailing list: https://groups.google.com/forum/#!forum/caffe-users

wkal
 
wkal commented 

The error still occurs, even though I run: make clean; make all; make test; make runtest. The former three command runs OK, but the forth stopped by that error:error while loading shared libraries:libcudart.so.6.5: cannot open shared object file: No shuch file or directory. And I followed your suggestion add the /usr/local/cuda-6.5 to your LD_LIBRARY_PATH by open the /etc/profile, after this I also run source /etc/profile to make this change works. But the error happen again, really strange!

Message has been deleted

César Salgado

unread,
Sep 26, 2014, 7:31:35 PM9/26/14
to caffe...@googlegroups.com
I was having this problem and it turned out I was overriding my LD_LIBRARY_PATH at the end of the .bashrc

My ~/.bashrc has this line "export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH" and it is working fine now that I deleted the line that was overriding it.

Liu Ming

unread,
Sep 27, 2014, 12:41:13 AM9/27/14
to César Salgado, caffe-users
I add the line "export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH" at the end of ~/.bashrc and the run sudo ldconfig, but it give me such error information: 
/sbin/ldconfig.real: /usr/local/lib/libcudart.so.6.5 is not a symbolic link

/sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6.5 is not a symbolic link

The content of /usr/local/lib/:
cmake/                                   libglog.so@
libboost_atomic.a                        libglog.so.0@
libboost_atomic.so@                      libglog.so.0.0.0*
libboost_atomic.so.1.53.0*               libhdf5.a
libboost_chrono.a                        libhdf5_hl.a
libboost_chrono.so@                      libhdf5_hl.la*
libboost_chrono.so.1.53.0*               libhdf5_hl.so@
libboost_context.a                       libhdf5_hl.so.8@
libboost_context.so@                     libhdf5_hl.so.8.0.1*
libboost_context.so.1.53.0*              libhdf5.la*
libboost_date_time.a                     libhdf5.settings
libboost_date_time.so@                   libhdf5.so@
libboost_date_time.so.1.53.0*            libhdf5.so.8@
libboost_exception.a                     libhdf5.so.8.0.1*
libboost_filesystem.a                    liblmdb.a
libboost_filesystem.so@                  liblmdb.so*
libboost_filesystem.so.1.53.0*           libopencv_calib3d.so@
libboost_graph.a                         libopencv_calib3d.so.2.4@
libboost_graph.so@                       libopencv_calib3d.so.2.4.9
libboost_graph.so.1.53.0*                libopencv_contrib.so@
libboost_locale.a                        libopencv_contrib.so.2.4@
libboost_locale.so@                      libopencv_contrib.so.2.4.9
libboost_locale.so.1.53.0*               libopencv_core.so@
libboost_math_c99.a                      libopencv_core.so.2.4@
libboost_math_c99f.a                     libopencv_core.so.2.4.9
libboost_math_c99f.so@                   libopencv_features2d.so@
libboost_math_c99f.so.1.53.0*            libopencv_features2d.so.2.4@
libboost_math_c99l.a                     libopencv_features2d.so.2.4.9
libboost_math_c99l.so@                   libopencv_flann.so@
libboost_math_c99l.so.1.53.0*            libopencv_flann.so.2.4@
libboost_math_c99.so@                    libopencv_flann.so.2.4.9
libboost_math_c99.so.1.53.0*             libopencv_gpu.so@
libboost_math_tr1.a                      libopencv_gpu.so.2.4@
libboost_math_tr1f.a                     libopencv_gpu.so.2.4.9
libboost_math_tr1f.so@                   libopencv_highgui.so@
libboost_math_tr1f.so.1.53.0*            libopencv_highgui.so.2.4@
libboost_math_tr1l.a                     libopencv_highgui.so.2.4.9
libboost_math_tr1l.so@                   libopencv_imgproc.so@
libboost_math_tr1l.so.1.53.0*            libopencv_imgproc.so.2.4@
libboost_math_tr1.so@                    libopencv_imgproc.so.2.4.9
libboost_math_tr1.so.1.53.0*             libopencv_legacy.so@
libboost_prg_exec_monitor.a              libopencv_legacy.so.2.4@
libboost_prg_exec_monitor.so@            libopencv_legacy.so.2.4.9
libboost_prg_exec_monitor.so.1.53.0*     libopencv_ml.so@
libboost_program_options.a               libopencv_ml.so.2.4@
libboost_program_options.so@             libopencv_ml.so.2.4.9
libboost_program_options.so.1.53.0*      libopencv_nonfree.so@
libboost_random.a                        libopencv_nonfree.so.2.4@
libboost_random.so@                      libopencv_nonfree.so.2.4.9
libboost_random.so.1.53.0*               libopencv_objdetect.so@
libboost_regex.a                         libopencv_objdetect.so.2.4@
libboost_regex.so@                       libopencv_objdetect.so.2.4.9
libboost_regex.so.1.53.0*                libopencv_ocl.so@
libboost_serialization.a                 libopencv_ocl.so.2.4@
libboost_serialization.so@               libopencv_ocl.so.2.4.9
libboost_serialization.so.1.53.0*        libopencv_photo.so@
libboost_signals.a                       libopencv_photo.so.2.4@
libboost_signals.so@                     libopencv_photo.so.2.4.9
libboost_signals.so.1.53.0*              libopencv_stitching.so@
libboost_system.a                        libopencv_stitching.so.2.4@
libboost_system.so@                      libopencv_stitching.so.2.4.9
libboost_system.so.1.53.0*               libopencv_superres.so@
libboost_test_exec_monitor.a             libopencv_superres.so.2.4@
libboost_thread.a                        libopencv_superres.so.2.4.9
libboost_thread.so@                      libopencv_ts.a
libboost_thread.so.1.53.0*               libopencv_video.so@
libboost_timer.a                         libopencv_video.so.2.4@
libboost_timer.so@                       libopencv_video.so.2.4.9
libboost_timer.so.1.53.0*                libopencv_videostab.so@
libboost_unit_test_framework.a           libopencv_videostab.so.2.4@
libboost_unit_test_framework.so@         libopencv_videostab.so.2.4.9
libboost_unit_test_framework.so.1.53.0*  libprotobuf.a
libboost_wave.a                          libprotobuf.la*
libboost_wave.so@                        libprotobuf-lite.a
libboost_wave.so.1.53.0*                 libprotobuf-lite.la*
libboost_wserialization.a                libprotobuf-lite.so@
libboost_wserialization.so@              libprotobuf-lite.so.8@
libboost_wserialization.so.1.53.0*       libprotobuf-lite.so.8.0.0*
libcudart.so.6.5*                        libprotobuf.so@
libcudart.so.6.5.14*                     libprotobuf.so.8@
libcudnn.so*                             libprotobuf.so.8.0.0*
libcudnn.so.6.5*                         libprotoc.a
libcudnn.so.6.5.18*                      libprotoc.la*
libcudnn.so.6.5.copy*                    libprotoc.so@
libcudnn_static.a                        libprotoc.so.8@
libgflags.a                              libprotoc.so.8.0.0*
libgflags_nothreads.a                    pkgconfig/
libglog.a                                python2.7/
libglog.la*

Wilma Pairo

unread,
Nov 17, 2014, 2:19:09 PM11/17/14
to caffe...@googlegroups.com
I have the same problem, caffe.mexa64: libcudart.so.6.5:cannot open shared object file. And i don't know how to solve. Can you help me please. I test the solution proposed but nothing.

Amgad Muhammad

unread,
Dec 2, 2014, 4:54:18 PM12/2/14
to caffe...@googlegroups.com
has the same problem I just exported the the environment variable using the following

export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64/

and it is working fine

harry olar

unread,
Nov 30, 2015, 7:35:07 PM11/30/15
to Caffe Users
It seems that I had the same problem .
I was running the tests like this:

sudo make -j4 runtest   and it was failing looking for the libcudart.so.6.5

It was working without sudo.
make -j4 run test

Found this here :https://groups.google.com/forum/#!topic/caffe-users/dcZrE3-60mc
Thanks
Reply all
Reply to author
Forward
0 new messages