Combine ATLAS and LAPACK?

66 views
Skip to first unread message

Volker Braun

unread,
Dec 18, 2010, 7:44:41 AM12/18/10
to sage-...@googlegroups.com
The newest development version atlas-3.9.32 now wants to build lapack itself and the old --with-netlib-lapack configure option is gone. According to the documentation, atlas can now automatically tune some lapack routines in addition to blas. From that perspective it makes sense that both need to be compiled together. But Sage currently ships separate lapack and atlas spkgs. I guess the options are 

1) somehow figure out how to separate atlas and lapack. That seems to be on collision course with where atlas is heading...

2) include lapack in the atlas spkg (versioned by lapack)

3) include atlas in the lapack spkg (versioned by atlas)

4) make a combined package that increases in version whenever atlas or lapack gets updated. For example, linear-algebra-n.spkg where n always increases by one...

Any thoughts? I've tentatively implemented option 2) in http://www.stp.dias.ie/~vbraun/Sage/spkg/atlas-3.9.32.spkg which compiles fine on F14 x86_64. The build process is definitely made simpler by including the lapack sources! But I secretly think that option 4) would be  best. Any thoughts?

Francois Bissey

unread,
Dec 19, 2010, 4:04:13 PM12/19/10
to sage-...@googlegroups.com

..........

Does the new ATLAS includes lapack sources? Traditionaly, you needed to
build lapack first against a regular libf77blas, install ATLAS then ATLAS
would replace a select few routine from liblapack.a by updating with ar.
I am all in favor of a direct build against ATLAS from the start.

I had given a lot of thought myself on the organization of BLAS/LAPACK/ATLAS
in sage and I think we should drop the BLAS reference stuff and do ATLAS/LAPACK
in just the one spkg as well. So your proposal makes total sense to me, even if
we have to include lapack source in there ourselves.

Francois


This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

winmail.dat

Volker Braun

unread,
Dec 19, 2010, 5:49:39 PM12/19/10
to sage-...@googlegroups.com
The new atlas does not include lapack sources, but you have to tell its configure script where the (netlib lapack) sources are if you want a lapack library.... I agree with you that the old system of hacking the already-built lapack library into atlas was a bit of a mess.


Dima Pasechnik

unread,
Dec 19, 2010, 10:29:56 PM12/19/10
to sage-devel
GotoBlas2 installation downloads lapack sources off the net, from the
standard netlib location

Volker Braun

unread,
Dec 20, 2010, 5:57:24 AM12/20/10
to sage-...@googlegroups.com
That would of course violate the rule that spkgs must install without internet connection... 
Reply all
Reply to author
Forward
0 new messages