Ask Your Question
2

SAGE_FAT_BINARIES and SAGE_ATLAS_ARCH - compile for old processors

asked 12 years ago

Emil Widmann gravatar image

updated 10 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 12 years ago

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

Preview: (hide)
link

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 ( 12 years ago )

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: 12 years ago

Seen: 410 times

Last updated: Dec 06 '12