Hello everyone,

I have just installed sage 3.2.3 to a directory that is being shared  
among various AMD- and Intel-based Linux workstations. In case anyone  
else wants to do the same, I will briefly summarize what I did.

i) Following advice from the friendly folks at #sage-support, I  
selected two build machines, one for each architecture. I made sure to  
use older machines to avoid generating e.g. SSE3 instructions.

ii) After re-exporting the software directory (we use /usr/local) read- 
write to these two machines, follow the documentation at 
http://www.sagemath.org/doc/inst/node8.html 
. Actually, I wanted to avoid the NFS overhead, so I did not build in  
place, but in a local directory instead. Afterwards, I copied that  
directory to its place on /usr/local via tar and scp. Note that step 3  
from the docs (make test) should be performed after copying.

iii) In step 4, copy to sage-intel and sage-amd rather than sage.

iv) Create a wrapper script to detect the architecture. Mine is a bit  
simplistic, but should work (unless you use it on a non-AMD, non-Intel  
machine, where it exits silently). It looks like this:

---------------------------------------------------------------------------
#!/bin/sh

grep GenuineIntel /proc/cpuinfo >/dev/null && /usr/local/bin/sage- 
intel "$@"
grep AuthenticAMD /proc/cpuinfo >/dev/null && /usr/local/bin/sage-amd  
"$@"
---------------------------------------------------------------------------


A.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to