Ask Your Question
2

SAGE_FAT_BINARIES and SAGE_ATLAS_ARCH - compile for old processors

asked 2012-12-05 13:23:12 +0200

Emil Widmann gravatar image

updated 2015-01-17 17:55:59 +0200

FrédéricC gravatar image

Hi, I recently compiled a new version of the Sage Live CD. In older versions it was enough to set SAGE_FAT_BINARIES='yes' to create a binary with low requirements on processor instructions (like "sse2" instruction set).

In the newer versions I also used SAGE_ATLAS_ARCH='base' flag, but now I have a report that it is not working properly on an old pentium processor.

I read something in the sage-devel group that there might be some interference between those build flags. What is the present procedure to produce a true "fat" binary which should run on possibly the widest range of hardware (without having to grant to use modern hardware to full extend).

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2012-12-06 07:01:40 +0200

tmonteil gravatar image

Hi Emil,

this is due to a logical bug in the atlas spkg: the system-wide variable SAGE_FAT_BINARY currently takes precedence over the specific variable SAGE_ATLAS_ARCH as explained in the trac ticket http://trac.sagemath.org/sage_trac/ti...

A possible workaround until it is fixed is:

  • cd ${YOUR_SAGE_ROOT}/spkg/standard/
  • tar xvf atlas-3.8.4.p1.spkg
  • modify atlas-3.8.4.p1/spkg-install according to the proposed patch http://trac.sagemath.org/sage_trac/at... (this is around line 203).
  • tar cvf atlas-3.8.4.p1.spkg atlas-3.8.4.p1
  • compile as usually exporting SAGE_FAT_BINARY='yes' and SAGE_ATLAS_ARCH='PIII'

Ciao, Thierry

edit flag offensive delete link more

Comments

Hi Thierry - thanks for that explanation! I will keep this in mind and when the time is ripe I will update the Live CD accordingly... cheers emil

Emil Widmann gravatar imageEmil Widmann ( 2012-12-06 13:11:49 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-12-05 13:23:12 +0200

Seen: 354 times

Last updated: Dec 06 '12