#6558: [with patch; needs review] Be more selective in patching ATLAS on Solaris
-------------------------+--------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.1.1
Component: solaris | Keywords: solaris atlas sun4v sun4m
Reviewer: | Author: David Kirkby
Merged: |
-------------------------+--------------------------------------------------
Changes (by newvalueoldvalue):
* keywords: solaris atlas sun4v => solaris atlas sun4v sun4m
* owner: tbd => drkirkby
* author: => David Kirkby
Comment:
Here's the patch directory, giving the patch, a rebuild .spkg and an
updated SPKG.txt
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/atlas-3.8.3.p6/
here's the actual patch:
http://sage.math.washington.edu/home/kirkby/Solaris-
fixes/atlas-3.8.3.p6/atlas-3.8.3.p6.spkg
It should be very simple to review, as the only change of code is to one
small line.
{{{
import shutil
-if os.uname()[0] == 'SunOS':
+if os.uname()[0] == 'SunOS' and os.uname()[4] == 'sun4v':
shutil.copy2('patches/mmsearch-with-temp-Solaris-
fix.c','src/tune/blas/gemm/mmsearch.c')
}}}
(There's also a change in a comment, since atlas-3.8.3.p5.spkg had a
comment which stopped in mid-sentence. I just completed the sentence.)
The patch is based on the fact that python's os.uname() prints the
architecture, and on Solaris that will be sun4v on 't2' and similar
machines, but different on machines which do not use the T1, T2 or T2+
processors. These processors, with
Here's the output of os.uname() on 't2', which is a Sun T5240 the T2+
processors.
{{{
kir...@t2:[~] $ python
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
('SunOS', 't2', '5.10', 'Generic_141414-02', 'sun4v')
>>>
}}}
and here is is on an older machine, a Sun Blade 2000 with UltraSPARC III
Cu CPU's, which are the older sun4u architecture.
{{{
drkir...@kestrel:[~] $ python
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
('SunOS', 'kestrel', '5.10', 'Generic_139555-08', 'sun4u')
>>>
}}}
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6558#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---