Error while compiling Rodinia benchmark : /usr/bin/ld: cannot find -lcutil_x86_64

361 views
Skip to first unread message

Rakesh Patil

unread,
Feb 7, 2015, 8:54:17 AM2/7/15
to gem5-g...@googlegroups.com
Hi,

Earlier before installing gem5-gpu I had installed cuda toolkit-5. While compiling the rodinia benchmark it started giving error that backprop_cuda.cu.cpp file not found. So I reinstalled cuda toolkit-3.2.
I recompiled libcuda by doing make clean followed by make.
Again when I try to compile rodinia bechmark it is giving error below -

rakesh@Ramanujan:~/gem5-gpu/benchmarks/rodinia/backprop$ make gem5-fusion
make -f Makefile.gem5-fusion
make[1]: Entering directory `/home/rakesh/gem5-gpu/benchmarks/rodinia/backprop'
g++ -DOUTPUT -DGEM5_FUSION facetrain.c_o imagenet.c_o backprop.c_o backprop_cuda.cu_o -L../../libcuda -lcuda \
        -L/home/rakesh/NVIDIA_GPU_Computing_SDK/lib -O3 \
        -lz -static -static-libgcc -o gem5_fusion_backprop -L/usr/lib64 -lcutil_x86_64 -lm5op_x86 -lm -lc  
/usr/bin/ld: cannot find -lcutil_x86_64
collect2: ld returned 1 exit status
make[1]: *** [gem5_fusion_backprop] Error 1
make[1]: Leaving directory `/home/rakesh/gem5-gpu/benchmarks/rodinia/backprop'
make: *** [gem5-fusion] Error 2
 

Rakesh Patil

unread,
Feb 8, 2015, 12:24:48 PM2/8/15
to gem5-g...@googlegroups.com

Do anyone have faced the above problem ?

Joel Hestness

unread,
Feb 8, 2015, 12:43:49 PM2/8/15
to Rakesh Patil, gem5-gpu developers
Hi Rakesh,
  This is a problem with your environment configuration for the build. Specifically, your variable $NVIDIA_CUDA_SDK_LOCATION is probably incorrect. You need to look for the cutil_x86_64 library and make sure it is included correctly in your build command. For instance:

  $ locate libcutil_x86_64.a
  /home/joel/bin/NVIDIA_GPU_Computing_SDK/C/lib/libcutil_x86_64.a
  $ echo $NVIDIA_CUDA_SDK_LOCATION
  /home/joel/bin/NVIDIA_GPU_Computing_SDK/C
  $ ls ${NVIDIA_CUDA_SDK_LOCATION}/lib
  libcutil_x86_64.a

  It looks like your environment variable is causing the path in your g++ command to be incorrect: -L/home/rakesh/NVIDIA_GPU_Computing_SDK/lib

  Also, Google tends to be very useful for debugging compilation problems. Here's the first hit in a search for your error (usr/bin/ld: cannot find -l)http://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary

  Joel





On Sun, Feb 8, 2015 at 11:24 AM, Rakesh Patil <rakeshko...@gmail.com> wrote:

Do anyone have faced the above problem ?



--
  Joel Hestness
  PhD Candidate, Computer Architecture
  Dept. of Computer Science, University of Wisconsin - Madison
  http://pages.cs.wisc.edu/~hestness/

Rakesh Patil

unread,
Feb 9, 2015, 12:30:51 PM2/9/15
to Joel Hestness, gem5-gpu developers
Thanks Joel for your reply. I could compile the rodinia benchmark.

But now, while compiling 'rodinia-nocopy' bechmark this error is coming...

/home/rakesh/cuda/include/surface_functions.h:464: error: there are no arguments to ‘__surf2Dreadu4’ that depend on a template parameter, so a declaration of ‘__surf2Dreadu4’ must be available

--
Regards,
Rakesh Ravindra Patil.
M.S. Research Scholar, IITM.

Joel Hestness

unread,
Feb 9, 2015, 2:31:53 PM2/9/15
to Rakesh Patil, gem5-gpu developers
Hi Rakesh,
  This isn't something that I've ever encountered. I'd recommend Googling for it and seeing what you can find.

  Joel
Reply all
Reply to author
Forward
0 new messages