cannot find -lcutil can't compile code cuda 3.0

Hey, I’ve just installed cuda 3.0 in ubuntu 9.10 x86_64. The host is able to see all devices and is able to run the SDK examples on every device, it compiled successfully and just to check I reran the make command to the ~/NVIDIA/C/common directory. This ubuntu 9.10 cuda 3.0 is in dual boot with a ubuntu 9.04 x86_64 cuda 2.3, that can run all my projects. However, on cuda 3.0 the output to make my projects is always:

/usr/bin/ld: cannot find -lcutil
collect2: ld returned 1 exit status

The environment variables PATH and LD_LIBRARY_PATH in either cuda are the same:

PATH= /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda/bin
LD_LIBRARY_PATH= /usr/local/cuda/lib64:/home/user/NVIDIA_SDK/C/common/lib

and I’ve added to /etc/ld.so.conf

/usr/local/cuda/lib64

Can someone help me out and tell me what is wrong and needs be changed? Thank you.

Looks like the makefile is following a 32 bit path. for 64 bit it should link with
-lcutil_x86_64

/NVIDIA_GPU_Computing_SDK/C/lib/libcutil_x86_64.a

N.

Linking with -lcutil_x86_64 still outcomes the same error…

With cuda 2.3 the make verbose=1 prints the same instructions as with cuda 3.0 but still

cannot find -lcutil

Did you run make in the /NVIDIA_GPU_Computing_SDK/C directory first?

Did you check whether the /NVIDIA_GPU_Computing_SDK/C/lib/libcutil_x86_64.a file actually exists?

N.

Thank you for your help. I changed the SDK folder name to NVIDIA_SDK and then forgot that the common.mk references NVIDIA_GPU_Computing_SDK. I changed it now and it works.

My bad…