[SciPy-user] problems with scipy.test() on Opteron 64-bit

Giovanni Samaey Giovanni.Samaey at cs.kuleuven.ac.be
Wed Nov 24 10:22:56 CST 2004


Pearu Peterson wrote:

>
>
> On Wed, 24 Nov 2004, Giovanni Samaey wrote:
>
>> Since I don't use linalg myself, I do not have any problems using 
>> SciPy like this. But I would appreciate this being solved before 
>> giving access to others. Since we plan on encouraging new students to 
>> use this environment instead of matlab, any help would be welcome.
>
>
> On a 64-bit platform you'll need F2PY version 2.43.239_1831, at least.
> Also upgrading Numeric would be recommended (make sure that new
> Numeric header files are copied to install directory as well).

OK -- I succeeded in recompiling atlas version 3.7.8, Numeric 23.6 (I 
also tried Numeric 23.5 ), and the latest
f2py (2.43.239_1844).  Python version is 2.3.4. However, I use gcc3.3.2.
Now the failed scipy tests reduce to only 3 (and 3 times the same 
computation that fails).
Would the compiler version really make the difference, is something 
wrong with the compile options, or could there
be an other problem?
I compiled atlas by following the instructions on the scipy homepage, 
with a few modifications:
I told ./xconfig -b $BLAS (so I did not give compiler options) and I 
then manually changed FFLAGS, CCFLAGS and
MCCFLAGS to include -fPIC

The lapack and blas were compiled by adding -fPIC -m64 to their options, 
to make the compiler options compatible with those of atlas.

======================================================================
FAIL: check_simple (scipy.linalg.decomp.test_decomp.test_eig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/data/home/giovanni/lib/python2.3/site-packages/scipy/linalg/tests/test_decomp.py", 
line 88, in check_simple
    assert_array_almost_equal(w,exact_w)
  File 
"/data/home/giovanni/lib/python2.3/site-packages/scipy_test/testing.py", 
line 727,
in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 66.6666666667%):
        Array 1: [ 9.4371906+0.j -0.1153653+0.j -0.3218254+0.j]
        Array 2: [ 9.3218254  0.        -0.3218254]


======================================================================
FAIL: check_simple (scipy.linalg.decomp.test_decomp.test_eigvals)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/data/home/giovanni/lib/python2.3/site-packages/scipy/linalg/tests/test_decomp.py", 
line 36, in check_simple
    assert_array_almost_equal(w,exact_w)
  File 
"/data/home/giovanni/lib/python2.3/site-packages/scipy_test/testing.py", 
line 727,
in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 66.6666666667%):
        Array 1: [ 9.4371906+0.j -0.1153653+0.j -0.3218254+0.j]
        Array 2: [ 9.3218254  0.        -0.3218254]


======================================================================
FAIL: check_simple_tr (scipy.linalg.decomp.test_decomp.test_eigvals)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/data/home/giovanni/lib/python2.3/site-packages/scipy/linalg/tests/test_decomp.py", 
line 44, in check_simple_tr
    assert_array_almost_equal(w,exact_w)
  File 
"/data/home/giovanni/lib/python2.3/site-packages/scipy_test/testing.py", 
line 727,
in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 66.6666666667%):
        Array 1: [ 9.4371906+0.j -0.1153653+0.j -0.3218254+0.j]
        Array 2: [ 9.3218254  0.        -0.3218254]


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

>
> Btw, all scipy tests pass ok on a dual Opteron box with 64-bit gentoo 
> system. I am using f2py from cvs, scipy from cvs, Numeric 23.5, ATLAS 
> 3.7.8, Python 2.3.4, gcc 3.4.3 in this box.
>
> Pearu
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user



-- 
Giovanni Samaey		 	http://www.cs.kuleuven.ac.be/~giovanni/ 
Katholieke Universiteit Leuven 	      email: giovanni at cs.kuleuven.ac.be 
Departement Computerwetenschappen                  phone: +32-16-327081
Celestijnenlaan 200A, B-3001 Heverlee, Belgium       fax: +32-16-327996
Office: A04.36




More information about the SciPy-user mailing list