On Sun, Jan 10, 2010 at 8:02 PM, Gonzalo Tornaria
<torna...@math.utexas.edu> wrote:
> cpu = 2 x quad core xeon E5520 (nehalem/i7)
> os = debian 5.0/lenny (64 bit)
...
>        sage -t  devel/sage/sage/symbolic/expression.pyx # 6 doctests failed
>        sage -t  devel/sage/sage/numerical/optimize.py # 6 doctests failed

Not funny.... look below --- this is a diff of one file in scipy,
between the sage built on core2, vs. the sage built on nehalem...

--- 
sage-core2-x86_64-Linux/local/lib/python2.6/site-packages/scipy/optimize/optimize.py
       2010-01-10 21:18:35.000000000 -0200
+++ 
sage-nehalem-x86_64-Linux/local/lib/python2.6/site-packages/scipy/optimize/optimize.py
      2009-02-11 00:56:10.000000000 -0200
@@ -41,12 +41,6 @@
     m = asarray(m)
     return numpy.minimum.reduce(m,axis)

-def is_array_scalar(x):
-    """Test whether `x` is either a scalar or an array scalar.
-
-    """
-    return len(atleast_1d(x) == 1)
-
 abs = absolute
 import __builtin__
 pymin = __builtin__.min
@@ -1183,12 +1177,13 @@

     """
     # Test bounds are of correct form
-
-    if not (is_array_scalar(x1) and is_array_scalar(x2)):
-        raise ValueError("Optimisation bounds must be scalars"
-                         " or array scalars.")
+    x1 = atleast_1d(x1)
+    x2 = atleast_1d(x2)
+    if len(x1) != 1 or len(x2) != 1:
+        raise ValueError, "Optimisation bounds must be scalars" \
+                " or length 1 arrays"
     if x1 > x2:
-        raise ValueError("The lower bound exceeds the upper bound.")
+        raise ValueError, "The lower bound exceeds the upper bound."

     flag = 0
     header = ' Func-count     x          f(x)          Procedure'


-------------


$ diff --exclude "*.pyc" --exclude "*.so" -ru
sage-{core2,nehalem}-x86_64-Linux/local/lib/python2.6/site-packages/scipy
| diffstat
 __config__.py         |   10 +++++-----
 integrate/setup.py    |   26 ++++----------------------
 interpolate/setup.py  |   17 ++---------------
 odr/setup.py          |   17 -----------------
 optimize/optimize.py  |   17 ++++++-----------
 optimize/setup.py     |   14 +-------------
 special/setup.py      |   20 +++-----------------
 stats/mstats_basic.py |    2 +-
 stats/setup.py        |   15 +--------------
 9 files changed, 23 insertions(+), 115 deletions(-)


Why are these files "patched" differently in nehalem ???

Gonzalo
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to