unable to link -lmagma

Open discussion for MAGMA

unable to link -lmagma

Postby 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
gaurav
 
Posts: 6
Joined: Thu Aug 13, 2009 1:20 pm

Re: unable to link -lmagma

Postby 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
Allan Menezes
 
Posts: 14
Joined: Wed Aug 05, 2009 10:01 pm

Re: unable to link -lmagma

Postby admin » Thu Aug 13, 2009 3:08 pm

If needed, we are going to post a 32-bit version of MAGMA as well.
Stan
admin
Site Admin
 
Posts: 18
Joined: Tue Aug 04, 2009 12:23 pm

Re: unable to link -lmagma

Postby 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
gaurav
 
Posts: 6
Joined: Thu Aug 13, 2009 1:20 pm

Re: unable to link -lmagma

Postby 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
admin
Site Admin
 
Posts: 18
Joined: Tue Aug 04, 2009 12:23 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 1 guest