SKhan
SKhan

Reputation: 71

/usr/bin/ld: cannot find -lcutil_x86_64

I've installed latest nvidia sdk and toolkit. When I run any of th sdk examples I get the following error:

/usr/bin/ld: cannot find -lcutil_x86_64

Any help will be highly appreciated.

Upvotes: 7

Views: 5946

Answers (2)

jopasserat
jopasserat

Reputation: 5930

In most of the CUDA frameworks installations I have been using, cutil was located in:

/sdk_installation_path/C/lib/libcutil_x86_64.a    

*(With /sdk_installation_path the path where you installed the CUDA sdk on your system. Frequently in /usr/local or /opt.)*

Moreover, I have always encountered cutil compiled as a static libary, understand you cannot dynamically link against it. However, you just need to add it on your compilation line, just the way you would do with any other object code generated from your source code:

nvcc foo.o /sdk_installation_path/C/lib/libcutil_x86_64.a -o foo

Upvotes: 2

hlovdal
hlovdal

Reputation: 28238

Three different takes on finding more information

  1. run command locate cutil_x86_64
  2. run command find / -name '*cutil_x86_64*' -print
  3. search for cutil_x86_64 with google.

Option 1 is the fast way, and you can skip 2 if 1 finds anything.

The third option gives a post from NVIDIA forums discussing this problem as the first hit, combine the information you get from all of them.

Upvotes: 1

Related Questions