I compiled the sdk examples yesterday and I ran few of them also. But today I am trying to run the deviceQuery and in the ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release folder by issuing ./deviceQuery command and it is showing:
./deviceQuery: error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory
Can anybody help me out please?
Set the path environment for CUDA
There you can see PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
something like that,,, just append the following
save and exit the editor
reload the path
now set LD_LIBRARY_PATH: (be in /etc/ directory itself)
(which creates a new file)
paste following into the file
save and quit the editor
reload LD_LIBRARY_PATH
Now run the samples.