Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't libcudart.so.4 be found when compiling the CUDA samples under Ubuntu?

I'm trying to get my Cuda SDK samples running, but I get the following error:

./bandwidthTest: error while loading shared libraries:                  libcudart.so.4: cannot open shared object file:                  No such file or directory 

Why can I compile the example successfully, but not run it? Is there a way to specify the path to the CUDA runtime library manually?

like image 557
Alex Avatar asked May 30 '12 01:05

Alex


1 Answers

try:

32-bit: sudo ldconfig /usr/local/cuda/lib

64-bit: sudo ldconfig /usr/local/cuda/lib64

cheers

like image 188
Edgar Avatar answered Sep 22 '22 09:09

Edgar