When compiling some CUDA code, I get the error, that the libcutil cannot be found even though I checked that the paths are correct.
Example
$ nvcc mycudacode.cu -lcutil -o mycudaproject -I ~/NVIDIA_GPU_Computing_SDK/C/common/inc -L ~/NVIDIA_GPU_Computing_SDK/C/lib
/usr/bin/ld: cannot find -lcutil
compilation terminated.
Even though:
$ ~/NVIDIA_GPU_Computing_SDK/C/lib$ ls
libcutil_x86_64.a libparamgl_x86_64.a librendercheckgl_x86_64.a
From the NVIDIA Forums:
On linux 64bit one has to rename
libcutil_x86_64.aintolibcutil.a.So
cdinto the folder$(HOME)/NVIDIA_GPU_Computing_SDK/C/lib/(or where you installed CUDA) and enter:cp libcutil_x86_64.a libcutil.aDISCLAIMER
As I already stumbled over this problem twice I added the question and the answer as a form of documentation.