digits caffe build make cuda

64 views
Skip to first unread message

Emre Can Kaya

unread,
Jan 29, 2016, 2:43:24 PM1/29/16
to DIGITS Users
in order to use caffe with digits I built Nvidia version of caffe. It succesfully built but after make all and make test, it doesnt do the make runtest . It cannot find some file in cuda directory. It says lib/ directory inside cuda is needed but in usr/local/ there are two cuda folders: cuda-7.5 and cuda-7.0 and none of them contains a folder lib/  , they contain lib64/.

Emre Can Kaya

unread,
Jan 29, 2016, 2:54:27 PM1/29/16
to DIGITS Users

here is the error:

.build_release/tools/caffe
.build_release/tools/caffe: error while loading shared libraries: libcudart.so.7.5: cannot open shared object file: No such file or directory
make: *** [runtest] Error 127

Luke Yeager

unread,
Jan 29, 2016, 6:00:05 PM1/29/16
to DIGITS Users
The short answer is that you need to tell the runtime linker where your CUDA libraries are. If you Google it, there are a myriad of ways to do this. The simplest is probably:

echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64" >> ~/.profile
source ~/.profile

Emre Can Kaya

unread,
Feb 1, 2016, 10:23:37 AM2/1/16
to DIGITS Users
in order to reinstall cuda I deleted the cuda folders in /usr/local/             do i have to do something else before installing cuda again

29 Ocak 2016 Cuma 20:00:05 UTC+2 tarihinde Luke Yeager yazdı:

Emre Can Kaya

unread,
Feb 1, 2016, 10:27:00 AM2/1/16
to DIGITS Users
I moved cuda folders into trash, because I thought it would be better to reinstall but when i type
% sudo apt-get install cuda-toolkit-7-5
it says it is already installed.


Luke Yeager

unread,
Feb 1, 2016, 5:55:46 PM2/1/16
to DIGITS Users
CUDA was installed with a deb package. To uninstall a deb package, you type this:

sudo apt-get remove cuda-toolkit-7-5
sudo apt
-get autoremove

In your case, you could either uninstall and then install, or you could force the package to re-install:

sudo apt-get install --reinstall cuda-toolkit-7-5
Reply all
Reply to author
Forward
0 new messages