unable to link -lmagma

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
gaurav
Posts: 6
Joined: Thu Aug 13, 2009 1:20 pm

unable to link -lmagma

Post by gaurav » Thu Aug 13, 2009 1:28 pm

Hi,

I am running Ubuntu-8.10 with gcc: version 4.3.2.

I tried to do a 'make' from within the (MAGMA_DIR)/testing, and it returned with the following error:

Code: Select all

gcc -fPIC testing_spotrf.o -o testing_spotrf -L../lib \
          -lcuda -lmagma -lmagmablas -L/home/gaurav/intel/mkl/10.0.1.014/lib/em64t -L/usr/local/cuda/lib  -lmkl_em64t -lguide -lpthread -lcublas -lm  get_nb.cpp
/usr/bin/ld: skipping incompatible ../lib/libmagma.a when searching for -lmagma
/usr/bin/ld: cannot find -lmagma
collect2: ld returned 1 exit status
make: *** [testing_spotrf] Error 1
I also tried linking one object file at a time with gcc:

Code: Select all

gcc -L../lib -lmagma -lmagmablas testing_cpotrf.o
I received a similar error:

Code: Select all

/usr/bin/ld: skipping incompatible ../lib/libmagma.a when searching for -lmagma
/usr/bin/ld: cannot find -lmagma
collect2: ld returned 1 exit status
I am not sure why does this error show up. Any ideas?

Thanks!
Gaurav

Allan Menezes
Posts: 14
Joined: Wed Aug 05, 2009 10:01 pm

Re: unable to link -lmagma

Post by Allan Menezes » Thu Aug 13, 2009 2:47 pm

Are you using a 64 bit or 32 bit version of Ubuntu 8.10. Currently I think that MAGMA supports only linux 64 bit binaries.
Also which version of CUDA are you using? 2.3, 2.2? 2.3 supports gcc versions 4.3.x but not 4.4.0
Thanks,
Allan

admin
Site Admin
Posts: 20
Joined: Tue Aug 04, 2009 12:23 pm

Re: unable to link -lmagma

Post by admin » Thu Aug 13, 2009 3:08 pm

If needed, we are going to post a 32-bit version of MAGMA as well.
Stan

gaurav
Posts: 6
Joined: Thu Aug 13, 2009 1:20 pm

Re: unable to link -lmagma

Post by gaurav » Thu Aug 13, 2009 4:27 pm

Oh! That would be the problem then. I have a 32-bit machine (and OS). I'll wait for the 32-bit version of MAGMA then.
I'm using CUDA 2.2, and other CUDA codes that I've written work well.

Thanks a lot!
Gaurav

admin
Site Admin
Posts: 20
Joined: Tue Aug 04, 2009 12:23 pm

Re: unable to link -lmagma

Post by admin » Sat Aug 15, 2009 12:04 pm

A 32-bit version is added to the current distribution.
To use the 32-bit version users have to go in lib and do

Code: Select all

 
ln -s -f libmagma_32.a libmagma.a
ln -s -f libmagmablas_32.a libmagmablas.a 
Stan

Post Reply