Hi guys, I’m very new to the CUDA language and am trying to get a hello world type program to compile using NVCC. Here is the code I’m trying to compile:
I realize it doesn’t really use any CUDA functionality but my goal here is to be able to compile it through NVCC and run the associated executable. The code compiles fine and generates both a.out and a .linkinfo file. The problem is as soon as I run a.out, I get the following error message:
./a.out: error while loading shared libraries: libcudart.so.2: cannot open shared object file: No such file or directory
Why am I receiving this message and what I can I do to fix it?