[SciPy-dev] scipy with icc/ifort 11

Stijn De Weirdt stijn.deweirdt at ugent.be
Fri Jan 9 04:26:28 EST 2009


hi all,

finally found some time again to play with python/icc/ifort.
i'm using python 2.5.4, icc/ifort 11.0.074 and mkl 10.1.0.015.
(pythin 2.5.4 has no ctypes support in this build i'm using. i still
need to retry with ctypes build with system libffi)

i reported some patches i needed in a previous mail, but then i was
stuck at a segfault.

i'm now using numpy 1.2.1 and yesterday svn checkout of scipy (so almost
0.7.0rc1).
numpy test results aren't changed (a few problems like reported
http://www.nabble.com/ANN:-NumPy-1.2.0-td19683018.html)

running the scipy tests still segfualt, but i looked at a core dump and
found 
test_dsyev (test_esv.TestEsv) ... Program received signal SIGSEGV
mkl_serv_allocate ()
in /apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/lib/lapack/flapack.so
then i read the mkl user guide and found that mkl does some optimised
memory management, so i decided to turn it off using
export MKL_DISABLE_FAST_MM=1
now it doesn't segfault anymore, but still a few tests fail. i attached
output at the end. if someone could shed some light on it, that would be
great.


btw, scipy test with 0.6.0 segfaults but fro completely different
reasons (or so it seems). i'm not bothering anymore.


stijn


------------------------------------------------------------------------
======================================================================
ERROR: Failure: ImportError (/cvos/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/linalg/atlas_version.so: undefined symbol: ATL_buildinfo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/cvos/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/nose/loader.py", line 364, in loadTestsFromName
    addr.filename, addr.module)
  File "/cvos/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/cvos/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/nose/importer.py", line 84, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/cvos/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/linalg/tests/test_atlas_version.py", line 8, in <module>
    import scipy.linalg.atlas_version
ImportError: /cvos/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/linalg/atlas_version.so: undefined symbol: ATL_buildinfo

======================================================================
ERROR: Failure: ImportError (No module named convolve)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/nose/loader.py", line 364, in loadTestsFromName
    addr.filename, addr.module)
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/nose/importer.py", line 84, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/stsci/__init__.py", line 2, in <module>
    import image
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/stsci/image/__init__.py", line 2, in <module>
    from _image import *
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/stsci/image/_image.py", line 2, in <module>
    import convolve
ImportError: No module named convolve

======================================================================
FAIL: test_lorentz (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/odr/tests/test_odr.py", line 292, in test_lorentz
    3.7798193600109009e+00]),
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/numpy/testing/utils.py", line 311, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/numpy/testing/utils.py", line 296, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal

(mismatch 100.0%)
 x: array([  1.00000000e+03,   1.00000000e-01,   3.80000000e+00])
 y: array([  1.43067808e+03,   1.33905090e-01,   3.77981936e+00])

======================================================================
FAIL: test_multi (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/odr/tests/test_odr.py", line 188, in test_multi
    0.5101147161764654,  0.5173902330489161]),
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/numpy/testing/utils.py", line 311, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/numpy/testing/utils.py", line 296, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal

(mismatch 100.0%)
 x: array([ 4. ,  2. ,  7. ,  0.4,  0.5])
 y: array([ 4.37998803,  2.43330576,  8.00288459,  0.51011472,  0.51739023])

======================================================================
FAIL: test_pearson (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/scipy/odr/tests/test_odr.py", line 235, in test_pearson
    np.array([ 5.4767400299231674, -0.4796082367610305]),
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/numpy/testing/utils.py", line 311, in assert_array_almost_equal
    header='Arrays are not almost equal')
  File "/shared/apps/python/2.5.4-ictce-3.2.020/lib/python2.5/site-packages/numpy/testing/utils.py", line 296, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal

(mismatch 100.0%)
 x: array([ 1.,  1.])
 y: array([ 5.47674003, -0.47960824])






More information about the SciPy-Dev mailing list