LAPACK Archives

[Lapack] lapack 32bit ?

Fredrik,
This should work.
And if you compile the netlib package  lapack.tgz by hand you should get a 
static library ( a .a file not a .so)
Just check you make.inc, the name of the generated library is in LAPACKLIB.
Sincerely,
Julie
On Aug 4, 2010, at 6:16 AM, Fredrik Hollsten wrote:

I tried to compile Lapack as 32 bit by changing
FORTRAN  = gfortran -fimplicit-none -g
to
FORTRAN  = g++ -m32

and

LOADER   = gfortran -g
to
LOADER   = g++ -m32

(I used both gfortran and g++)

But when I check the file, it's still 64bit:

file /usr/lib/liblapack.so.3 
/usr/lib/liblapack.so.3: ELF 64-bit LSB shared object, x86-64, version 1 
(SYSV), dynamically linked, stripped

How can I obtain a 32-bit version?


On 8/4/2010 1:26 PM, Fredrik Hollsten wrote:

Thank you for your reply!

Perhaps I was a bit unclear earlier... The error of course occurred while 
compiling another program, but the reason for this is that my LAPACK is 
64bit. 
How do I compile LAPACK in 32 bits?

Thank you for your help!

-Fredrik


On 8/3/2010 8:18 PM, julie langou wrote:

Frederik,
you can just install LAPACK and compile it in 32 bits.
or you can use g++ -m64 . That would compile and  link in 64 bits.
Regards,
Julie
On Aug 3, 2010, at 8:15 AM, Fredrik Hollsten wrote:

Hi,

I have this problem when compiling lapack on 32bit ubuntu:

g++ -L/usr/lib -lXext -lX11 -ljpeg -lm -lpthread -llapack -lgsl 
-lgslcblas -o pmvs2 pmvs2.o camera.o image.o photo.o photoSetS.o 
detectFeatures.o detector.o dog.o expand.o filter.o findMatch.o harris.o 
optim.o option.o patch.o patchOrganizerS.o point.o seed.o mylapack.o 
-L/usr/lib -lXext -lX11 -ljpeg -lm -lpthread -llapack -lgsl -lgslcblas
/usr/bin/ld: skipping incompatible /usr/lib/liblapack.so when searching 
for -llapack
/usr/bin/ld: skipping incompatible /usr/lib/liblapack.so when searching 
for -llapack
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/liblapack.so when 
searching for -llapack
/usr/bin/ld: skipping incompatible /usr/lib/../lib/liblapack.so when 
searching for -llapack
/usr/bin/ld: skipping incompatible 
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../liblapack.so when searching 
for -llapack
/usr/bin/ld: skipping incompatible /usr/lib/liblapack.so when searching 
for -llapack
/usr/bin/ld: cannot find -llapack


Apparently it is because liblapack.so is 64bit and the system is 32bit. 
How do I solve this problem?

Thank you very very much!


Br,
 Fredrik Hollsten
_______________________________________________
Lapack mailing list
Lapack at cs.utk.edu
http://lists.eecs.utk.edu/mailman/listinfo/lapack

**********************************************
Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)
julie at cs.utk.edu; http://www.cs.utk.edu/~julie/










**********************************************
Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)
julie at cs.utk.edu; http://www.cs.utk.edu/~julie/







-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20100804/1e0fe4ff/attachment-0001.html
 

<Prev in Thread] Current Thread [Next in Thread>


For additional information you may use the LAPACK/ScaLAPACK Forum.
Or one of the mailing lists, or