A work colleague of mine used make to rebuild and link all of the example file in the CUDA 3.0 SDK. I assume it went or without incident.
He then tried to run on of the programs and got the following response.
root@fermi:/home/errol/NVIDIA_GPU_Computing_SDK/C/bin/linux/release# ./BlackScholes
./BlackScholes: error while loading shared libraries: libcudart.so.3: cannot open shared object file: No such file or directory
root@fermi:/home/errol/NVIDIA_GPU_Computing_SDK/C/bin/linux/release# ./MatrixMul
bash: ./MatrixMul: No such file or directory
root@fermi:/home/errol/NVIDIA_GPU_Computing_SDK/C/bin/linux/release# ./matrixMul
./matrixMul: error while loading shared libraries: libcudart.so.3: cannot open shared object file: No such file or directory
root@fermi:/home/errol/NVIDIA_GPU_Computing_SDK/C/bin/linux/release#
Now I know how to do this by command line, I am still learning using makefile. I can run make and when I last did it a few weeks ago, everything was fine.
I am not sure what is going on, but it seems not to be able to access libcudart.so.3. I cannot easily find it on my remote access. I am guessing the path has changed - hence no libcudart.so.3 is found.
It is an environment variable and environment variables aren’t permanent. They have the life of the shell they are defined in. If you don’t do something to set it every time a new shell starts (like put it in your .bashrc file for example), it will never be set.
ohh yes, this was very helpful for me. Thank you. I changed my LD_LIBRARY_PATH from “lib64” to “lib”. then it worked. This lib name may be depend on your driver version. You can find out what is it? looking at /usr/local/cuda
Hi, I need your help, i test the solution proposed but nothing, in matlab when I run the program DeepPyramid demo show me the next error caffe.mexa64: libcudart.so.6.5:cannot open shared object file, i try to copy libcudart.so.6.5 in the same folder of caffe.mexa64, but I have the same problem. I dont know what happen.