I have installed Cuda Toolkit Beta 1.1 and SDK 1.1 and added path to cuda/bin and cuda/lib but when I try to compile examples from SDK following error appear:
ar: creating ./../lib/libcutil.a
a - obj/release/bank_checker.cpp_o
a - obj/release/cmd_arg_reader.cpp_o
a - obj/release/cutil.cpp_o
a - obj/release/stopwatch.cpp_o
a - obj/release/stopwatch_linux.cpp_o
a - obj/release/multithreading.cpp_o
make[1]: Leaving directory `/home/zoo/NVIDIA_CUDA_SDK/common'
make[1]: Entering directory `/home/zoo/NVIDIA_CUDA_SDK/common'
a - obj/release/paramgl.cpp_o
a - obj/release/param.cpp_o
make[1]: Leaving directory `/home/zoo/NVIDIA_CUDA_SDK/common'
make -C projects/asyncAPI/
make[1]: Entering directory `/home/zoo/NVIDIA_CUDA_SDK/projects/asyncAPI'
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
make[1]: *** [../../bin/linux/release/asyncAPI] Error 1
make[1]: Leaving directory `/home/zoo/NVIDIA_CUDA_SDK/projects/asyncAPI'
make: *** [projects/asyncAPI/Makefile.ph_build] Error 2
I am compiling this on Ubuntu 7.10 if this matter. Any suggestions?
I’m afraid that Ubuntu-7.10 is not a supported environment for CUDA, however I suspect the issue here is that you either did not install the 169.01 display driver (which includes libcuda.so), or the SDK apps cannot find libcuda.so on your system.
You’ll need to determine where libcuda.so got installed on Ubuntu-7.10 and make sure that its in your library search path (either via /etc/ld.so.conf or explicitly from setting LD_LIBRARY_PATH).
If you want to use the CUDA 1.1 toolkit, you have to update to the new ver 169 driver. libcuda.so has been moved from the toolkit package to the driver package. (As I learned yesterday from a helpful NVIDIA dev via the bug database…) Once you install the new driver, you will find it in either /usr/lib or /usr/lib64, depending on your platform.
I got a similar problem - in my case most of the examples do build, however the two *Drv projects result in the above mentioned error. When trying to execute any of the built files, all of them report that there is no device supporting CUDA.
I’m using the 169.12 driver with CUDA Toolkit and SDK v1.1 on an 8600M GT device. The .so files were originally in the Toolkit directory, yet copying them to /usr/lib didn’t solve the problem.
I see this error whenever I try and run the makefiles for the SDK for, either, the specific *Drv project, or the main makefile for all the projects. By renaming the the makefiles in the two *Drv projects so that they are ignored I am able to compile and run all of the other projects.
I was looking in the forum for the solution for this problem. I just found this topic. I’ve got the same problem related here, but I have not found any solution.