<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Ying, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019187#M19651</link>
    <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Thanks for the reply. I have tried exporting the values you suggest. Now scipy fails in teh build stage with the following error:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;creating build/lib.linux-x86_64-2.7/scipy/fftpack
/opt/intel/compilers_and_libraries_2016.0.109/linux/bin/intel64/ifort -shared -ldl -lm build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/fortranobject.o -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -o build/lib.linux-x86_64-2.7/scipy/fftpack/_fftpack.so
ifort: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
ld: build/temp.linux-x86_64-2.7/libdfftpack.a(zffti1.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
build/temp.linux-x86_64-2.7/libdfftpack.a: error adding symbols: Bad value
error: Command "/opt/intel/compilers_and_libraries_2016.0.109/linux/bin/intel64/ifort -shared -ldl -lm build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/fortranobject.o -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -o build/lib.linux-x86_64-2.7/scipy/fftpack/_fftpack.so" failed with exit status 1ifort: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
ld: build/temp.linux-x86_64-2.7/libdfftpack.a(zffti1.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
build/temp.linux-x86_64-2.7/libdfftpack.a: error adding symbols: Bad value
&lt;/PRE&gt;

&lt;P&gt;Thank you for your help!&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Jonah&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2015 19:25:31 GMT</pubDate>
    <dc:creator>Jonah_M_</dc:creator>
    <dc:date>2015-09-10T19:25:31Z</dc:date>
    <item>
      <title>Scipy 15.1 not linked properly when compiled against MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019184#M19648</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have been trying to compile numpy and scipy against intel MKL. I have been following the following guide to the letter:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I am using the versions of numpy and scipy tested with the guide, numpy 1.9.2 and scpy 0.15.1. Numpy installs exactly as I would expect it to and performs well. However, when I run the standard scipy tests, i.e.,&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;import scipy
scipy.test()&lt;/PRE&gt;

&lt;P&gt;I encounter a large number of errors related to missing symbols, such as&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset&lt;/PRE&gt;

&lt;P&gt;Has anyone else experienced this or does anyone have any insight? Thanks in advance for your help.&lt;/P&gt;

&lt;P&gt;My LD_LIBRARY_PATH is:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64:/opt/intel/composer_xe_2015.3.187/compiler/lib/intel64/:/lib:/usr/local/plc-2.0/lib:/lib64:/opt/intel/composer_xe_2015.3.187/ipp/../compiler/lib/intel64/:/opt/intel/composer_xe_2015.3.187/ipp/../compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/mpi/intel64/lib:/opt/intel/compilers_and_libraries_2016.0.109/linux/ipp/../compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/ipp/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/tbb/lib/intel64/gcc4.4:/opt/intel/debugger_2016/libipt/intel64/lib:/opt/intel/compilers_and_libraries_2016.0.109/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2016.0.109/linux/daal/../tbb/lib/intel64_lin/gcc4.4:/opt/intel/compilers_and_libraries_2016.0.109/linux/daal/../compiler/lib/intel64_lin::/usr/local/cuda/lib64:/usr/local/cuda/lib&lt;/PRE&gt;

&lt;P&gt;The full results of the scipy tests are:&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;======================================================================
ERROR: Failure: ImportError (scipy/fftpack/_fftpack.so: undefined symbol: __intel_avx_rep_memcpy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/fftpack/__init__.py", line 94, in &amp;lt;module&amp;gt;
    from .basic import *
  File "scipy/fftpack/basic.py", line 12, in &amp;lt;module&amp;gt;
    from . import _fftpack
ImportError: scipy/fftpack/_fftpack.so: undefined symbol: __intel_avx_rep_memcpy

======================================================================
ERROR: Failure: ImportError (scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/integrate/__init__.py", line 51, in &amp;lt;module&amp;gt;
    from .quadrature import *
  File "scipy/integrate/quadrature.py", line 6, in &amp;lt;module&amp;gt;
    from scipy.special.orthogonal import p_roots
  File "scipy/special/__init__.py", line 586, in &amp;lt;module&amp;gt;
    from ._ufuncs import *
ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/interpolate/__init__.py", line 160, in &amp;lt;module&amp;gt;
    from .interpolate import *
  File "scipy/interpolate/interpolate.py", line 16, in &amp;lt;module&amp;gt;
    import scipy.special as spec
  File "scipy/special/__init__.py", line 586, in &amp;lt;module&amp;gt;
    from ._ufuncs import *
ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/io/__init__.py", line 85, in &amp;lt;module&amp;gt;
    from .matlab import loadmat, savemat, whosmat, byteordercodes
  File "scipy/io/matlab/__init__.py", line 13, in &amp;lt;module&amp;gt;
    from .mio import loadmat, savemat, whosmat
  File "scipy/io/matlab/mio.py", line 12, in &amp;lt;module&amp;gt;
    from .miobase import get_matfile_version, docfiller
  File "scipy/io/matlab/miobase.py", line 22, in &amp;lt;module&amp;gt;
    from scipy.misc import doccer
  File "scipy/misc/__init__.py", line 47, in &amp;lt;module&amp;gt;
    from scipy.special import comb, factorial, factorial2, factorialk
  File "scipy/special/__init__.py", line 586, in &amp;lt;module&amp;gt;
    from ._ufuncs import *
ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/linalg/_interpolative.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/nfs/galaxy/unixhome/jmiller/scipy-to-copy/lib/python2.7/site-packages/scipy/linalg/tests/test_interpolative.py", line 29, in &amp;lt;module&amp;gt;
    import scipy.linalg.interpolative as pymatrixid
  File "scipy/linalg/interpolative.py", line 386, in &amp;lt;module&amp;gt;
    import scipy.linalg._interpolative_backend as backend
  File "scipy/linalg/_interpolative_backend.py", line 34, in &amp;lt;module&amp;gt;
    import scipy.linalg._interpolative as _id
ImportError: scipy/linalg/_interpolative.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/sparse/linalg/isolve/_iterative.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/nfs/galaxy/unixhome/jmiller/scipy-to-copy/lib/python2.7/site-packages/scipy/linalg/tests/test_matfuncs.py", line 27, in &amp;lt;module&amp;gt;
    from scipy.linalg import _matfuncs_inv_ssq
  File "scipy/linalg/_matfuncs_inv_ssq.py", line 15, in &amp;lt;module&amp;gt;
    from scipy.sparse.linalg.interface import LinearOperator
  File "scipy/sparse/linalg/__init__.py", line 109, in &amp;lt;module&amp;gt;
    from .isolve import *
  File "scipy/sparse/linalg/isolve/__init__.py", line 6, in &amp;lt;module&amp;gt;
    from .iterative import *
  File "scipy/sparse/linalg/isolve/iterative.py", line 7, in &amp;lt;module&amp;gt;
    from . import _iterative
ImportError: scipy/sparse/linalg/isolve/_iterative.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (cannot import name doccer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/nfs/galaxy/unixhome/jmiller/scipy-to-copy/lib/python2.7/site-packages/scipy/linalg/tests/test_special_matrices.py", line 12, in &amp;lt;module&amp;gt;
    from scipy.misc import comb
  File "scipy/misc/__init__.py", line 44, in &amp;lt;module&amp;gt;
    from . import doccer
ImportError: cannot import name doccer

======================================================================
ERROR: Failure: ImportError (cannot import name doccer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/misc/__init__.py", line 44, in &amp;lt;module&amp;gt;
    from . import doccer
ImportError: cannot import name doccer

======================================================================
ERROR: Failure: ImportError (cannot import name doccer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/ndimage/__init__.py", line 172, in &amp;lt;module&amp;gt;
    from .filters import *
  File "scipy/ndimage/filters.py", line 37, in &amp;lt;module&amp;gt;
    from scipy.misc import doccer
  File "scipy/misc/__init__.py", line 44, in &amp;lt;module&amp;gt;
    from . import doccer
ImportError: cannot import name doccer

======================================================================
ERROR: Failure: ImportError (scipy/odr/__odrpack.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/odr/__init__.py", line 114, in &amp;lt;module&amp;gt;
    from .odrpack import *
  File "scipy/odr/odrpack.py", line 42, in &amp;lt;module&amp;gt;
    from scipy.odr import __odrpack
ImportError: scipy/odr/__odrpack.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/optimize/_lbfgsb.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/optimize/__init__.py", line 176, in &amp;lt;module&amp;gt;
    from ._minimize import *
  File "scipy/optimize/_minimize.py", line 31, in &amp;lt;module&amp;gt;
    from .lbfgsb import _minimize_lbfgsb
  File "scipy/optimize/lbfgsb.py", line 40, in &amp;lt;module&amp;gt;
    from . import _lbfgsb
ImportError: scipy/optimize/_lbfgsb.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/signal/__init__.py", line 264, in &amp;lt;module&amp;gt;
    from .bsplines import *
  File "scipy/signal/bsplines.py", line 4, in &amp;lt;module&amp;gt;
    import scipy.special
  File "scipy/special/__init__.py", line 586, in &amp;lt;module&amp;gt;
    from ._ufuncs import *
ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/sparse/linalg/isolve/_iterative.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/sparse/linalg/__init__.py", line 109, in &amp;lt;module&amp;gt;
    from .isolve import *
  File "scipy/sparse/linalg/isolve/__init__.py", line 6, in &amp;lt;module&amp;gt;
    from .iterative import *
  File "scipy/sparse/linalg/isolve/iterative.py", line 7, in &amp;lt;module&amp;gt;
    from . import _iterative
ImportError: scipy/sparse/linalg/isolve/_iterative.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/sparse/linalg/isolve/_iterative.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/nfs/galaxy/unixhome/jmiller/scipy-to-copy/lib/python2.7/site-packages/scipy/sparse/tests/test_base.py", line 44, in &amp;lt;module&amp;gt;
    from scipy.sparse.linalg import splu, expm, inv
  File "scipy/sparse/linalg/__init__.py", line 109, in &amp;lt;module&amp;gt;
    from .isolve import *
  File "scipy/sparse/linalg/isolve/__init__.py", line 6, in &amp;lt;module&amp;gt;
    from .iterative import *
  File "scipy/sparse/linalg/isolve/iterative.py", line 7, in &amp;lt;module&amp;gt;
    from . import _iterative
ImportError: scipy/sparse/linalg/isolve/_iterative.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/special/__init__.py", line 586, in &amp;lt;module&amp;gt;
    from ._ufuncs import *
ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset

======================================================================
ERROR: Failure: ImportError (scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "scipy/stats/__init__.py", line 338, in &amp;lt;module&amp;gt;
    from .stats import *
  File "scipy/stats/stats.py", line 184, in &amp;lt;module&amp;gt;
    import scipy.special as special
  File "scipy/special/__init__.py", line 586, in &amp;lt;module&amp;gt;
    from ._ufuncs import *
ImportError: scipy/special/_ufuncs.so: undefined symbol: __intel_avx_rep_memset

======================================================================
FAIL: test_qhull.TestDelaunay.test_incremental('pathological-1-chunk-1',)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/scipy-to-copy/lib/python2.7/site-packages/scipy/spatial/tests/test_qhull.py", line 507, in check
    np.arange(points.shape[0]))
  File "/usr/local/numpy-1.9.2/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/usr/local/numpy-1.9.2/lib/python2.7/site-packages/numpy/testing/utils.py", line 620, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(shapes (79,), (81,) mismatch)
 x: array([ 0,  2,  3,  4,  5,  6,  7,  8,  9, 11, 12, 13, 14, 15, 16, 17, 18,
       19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
       36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,...
 y: array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
       17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
       34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,...

======================================================================
FAIL: test_qhull.TestUtilities.test_degenerate_barycentric_transforms
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/numpy-1.9.2/lib/python2.7/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "/nfs/galaxy/unixhome/jmiller/scipy-to-copy/lib/python2.7/site-packages/scipy/spatial/tests/test_qhull.py", line 296, in test_degenerate_barycentric_transforms
    assert_(bad_count &amp;lt; 20, bad_count)
  File "/usr/local/numpy-1.9.2/lib/python2.7/site-packages/numpy/testing/utils.py", line 53, in assert_
    raise AssertionError(smsg)
AssertionError: 26

----------------------------------------------------------------------
Ran 1760 tests in 13.580s
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 04:11:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019184#M19648</guid>
      <dc:creator>Jonah_M_</dc:creator>
      <dc:date>2015-09-09T04:11:00Z</dc:date>
    </item>
    <item>
      <title>Hi Jonah,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019185#M19649</link>
      <description>&lt;P&gt;Hi Jonah,&lt;/P&gt;

&lt;P&gt;What are your c and fortran compiler you are using? &amp;nbsp;The symbol &lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px;"&gt;__intel_avx_rep_memset&lt;/SPAN&gt;&amp;nbsp;look like from &amp;nbsp;one of Intel library, but i haven't found it so far. &amp;nbsp; &amp;nbsp;Anyway, could you please try&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px; line-height: 1.4;"&gt;in the site.cfg file, you must link with mkl_rt only and any other linking method will not work.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;Export the compiler flags as:&lt;/P&gt;

&lt;DIV class="syntaxhighlighter  " id="highlighter_953509" style="box-sizing: border-box; width: 663.296875px; font-size: 14px; color: rgb(102, 102, 102);"&gt;
	&lt;DIV class="bar           show" style="box-sizing: border-box;"&gt;
		&lt;DIV class="toolbar" style="box-sizing: border-box;"&gt;&lt;A class="item viewSource" href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl#viewSource" style="box-sizing: border-box; width: 16px; height: 16px;" title="view source"&gt;view source&lt;/A&gt;&lt;A class="item printSource" href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl#printSource" style="box-sizing: border-box; width: 16px; height: 16px;" title="print"&gt;print&lt;/A&gt;&lt;A class="item about" href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl#about" style="box-sizing: border-box; width: 16px; height: 16px;" title="?"&gt;?&lt;/A&gt;&lt;/DIV&gt;
	&lt;/DIV&gt;

	&lt;DIV class="lines" style="box-sizing: border-box; width: 1983.890625px;"&gt;
		&lt;DIV class="line alt1" style="box-sizing: border-box;"&gt;
			&lt;TABLE style="box-sizing: border-box;"&gt;
				&lt;TBODY style="box-sizing: border-box;"&gt;
					&lt;TR style="box-sizing: border-box;"&gt;
						&lt;TD class="number" style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;"&gt;1&lt;/CODE&gt;&lt;/TD&gt;
						&lt;TD class="content" style="box-sizing: border-box;"&gt;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;$&lt;/CODE&gt;&lt;CODE class="functions" style="box-sizing: border-box;"&gt;export&lt;/CODE&gt;&amp;nbsp;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;CFLAGS=&lt;/CODE&gt;&lt;CODE class="string" style="box-sizing: border-box;"&gt;"-fopenmp -m64 -mtune=native -O3 -Wl,--no-as-needed"&lt;/CODE&gt;&lt;/TD&gt;
					&lt;/TR&gt;
				&lt;/TBODY&gt;
			&lt;/TABLE&gt;
		&lt;/DIV&gt;

		&lt;DIV class="line alt2" style="box-sizing: border-box;"&gt;
			&lt;TABLE style="box-sizing: border-box;"&gt;
				&lt;TBODY style="box-sizing: border-box;"&gt;
					&lt;TR style="box-sizing: border-box;"&gt;
						&lt;TD class="number" style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;"&gt;2&lt;/CODE&gt;&lt;/TD&gt;
						&lt;TD class="content" style="box-sizing: border-box;"&gt;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;$&lt;/CODE&gt;&lt;CODE class="functions" style="box-sizing: border-box;"&gt;export&lt;/CODE&gt;&amp;nbsp;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;CXXFLAGS=&lt;/CODE&gt;&lt;CODE class="string" style="box-sizing: border-box;"&gt;"-fopenmp -m64 -mtune=native -O3 -Wl,--no-as-needed"&lt;/CODE&gt;&lt;/TD&gt;
					&lt;/TR&gt;
				&lt;/TBODY&gt;
			&lt;/TABLE&gt;
		&lt;/DIV&gt;

		&lt;DIV class="line alt1" style="box-sizing: border-box;"&gt;
			&lt;TABLE style="box-sizing: border-box;"&gt;
				&lt;TBODY style="box-sizing: border-box;"&gt;
					&lt;TR style="box-sizing: border-box;"&gt;
						&lt;TD class="number" style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;"&gt;3&lt;/CODE&gt;&lt;/TD&gt;
						&lt;TD class="content" style="box-sizing: border-box;"&gt;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;$&lt;/CODE&gt;&lt;CODE class="functions" style="box-sizing: border-box;"&gt;export&lt;/CODE&gt;&amp;nbsp;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;LDFLAGS=&lt;/CODE&gt;&lt;CODE class="string" style="box-sizing: border-box;"&gt;"-ldl -lm"&lt;/CODE&gt;&lt;/TD&gt;
					&lt;/TR&gt;
				&lt;/TBODY&gt;
			&lt;/TABLE&gt;
		&lt;/DIV&gt;

		&lt;DIV class="line alt2" style="box-sizing: border-box;"&gt;
			&lt;TABLE style="box-sizing: border-box;"&gt;
				&lt;TBODY style="box-sizing: border-box;"&gt;
					&lt;TR style="box-sizing: border-box;"&gt;
						&lt;TD class="number" style="box-sizing: border-box;"&gt;&lt;CODE style="box-sizing: border-box;"&gt;4&lt;/CODE&gt;&lt;/TD&gt;
						&lt;TD class="content" style="box-sizing: border-box;"&gt;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;$&lt;/CODE&gt;&lt;CODE class="functions" style="box-sizing: border-box;"&gt;export&lt;/CODE&gt;&amp;nbsp;&lt;CODE class="plain" style="box-sizing: border-box;"&gt;FFLAGS=&lt;/CODE&gt;&lt;CODE class="string" style="box-sizing: border-box;"&gt;"-fopenmp -m64 -mtune=native -O3 -Wl, --no-as-needed"&lt;/CODE&gt;&lt;/TD&gt;
					&lt;/TR&gt;
				&lt;/TBODY&gt;
			&lt;/TABLE&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 07:10:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019185#M19649</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-09-10T07:10:47Z</dc:date>
    </item>
    <item>
      <title>Hi, Jonah</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019186#M19650</link>
      <description>&lt;P&gt;Hi, Jonah&lt;/P&gt;

&lt;P&gt;Did try to build Numpy/Scipy with 16.0 Intel compiler, but run with 15.0 libraries?&lt;/P&gt;

&lt;P&gt;I noticed both 16.0 and 15.0 update 3 are installed on your system.&lt;/P&gt;

&lt;P&gt;The "__intel_avx_rep_memset" is available in 16.0 libirc.so, but not in 15.0.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Yolanda&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 08:45:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019186#M19650</guid>
      <dc:creator>Yuan_C_Intel</dc:creator>
      <dc:date>2015-09-10T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019187#M19651</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Thanks for the reply. I have tried exporting the values you suggest. Now scipy fails in teh build stage with the following error:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;creating build/lib.linux-x86_64-2.7/scipy/fftpack
/opt/intel/compilers_and_libraries_2016.0.109/linux/bin/intel64/ifort -shared -ldl -lm build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/fortranobject.o -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -o build/lib.linux-x86_64-2.7/scipy/fftpack/_fftpack.so
ifort: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
ld: build/temp.linux-x86_64-2.7/libdfftpack.a(zffti1.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
build/temp.linux-x86_64-2.7/libdfftpack.a: error adding symbols: Bad value
error: Command "/opt/intel/compilers_and_libraries_2016.0.109/linux/bin/intel64/ifort -shared -ldl -lm build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/fortranobject.o -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -o build/lib.linux-x86_64-2.7/scipy/fftpack/_fftpack.so" failed with exit status 1ifort: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance
ld: build/temp.linux-x86_64-2.7/libdfftpack.a(zffti1.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
build/temp.linux-x86_64-2.7/libdfftpack.a: error adding symbols: Bad value
&lt;/PRE&gt;

&lt;P&gt;Thank you for your help!&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 19:25:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019187#M19651</guid>
      <dc:creator>Jonah_M_</dc:creator>
      <dc:date>2015-09-10T19:25:31Z</dc:date>
    </item>
    <item>
      <title>Hi Yolanda,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019188#M19652</link>
      <description>&lt;P&gt;Hi Yolanda,&lt;/P&gt;

&lt;P&gt;Thank you for your reply! Yes, this is possible. To test this, I reset my LD_LIBRARY_PATH to exclude the 2015 compilers before and after building. However, when I do this, the code segfaults when loading fftw, all else remaining the same. I'm not sure how to interpret that.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 19:27:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019188#M19652</guid>
      <dc:creator>Jonah_M_</dc:creator>
      <dc:date>2015-09-10T19:27:31Z</dc:date>
    </item>
    <item>
      <title>Hi Jonah, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019189#M19653</link>
      <description>&lt;P&gt;Hi Jonah,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Let us clarify,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1)&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;when you try 2015 compiler and MKL + the original setting, what is the error? &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;2) &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;when you try 2015 compiler and MKL + the &amp;nbsp;setting in post #2, what is the error?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Regarding the last error itself, &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px; background-color: rgb(248, 248, 248);"&gt;relocation R_X86_64_32S against `.rodata' can not be used itself, it seems ask recompile&amp;nbsp;-fPIC&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; line-height: 14.3088006973267px; background-color: rgb(248, 248, 248);"&gt;so may you add&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;$export&amp;nbsp;FFLAGS="-fopenmp -m64 -mtune=native -O3 -Wl, --no-as-needed -fPIC"&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;and let us know the result.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 03:26:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019189#M19653</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-09-11T03:26:49Z</dc:date>
    </item>
    <item>
      <title>Hi Ying, Yolanda,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019190#M19654</link>
      <description>&lt;P&gt;Hi Ying, Yolanda,&lt;/P&gt;

&lt;P&gt;Thank you for your help. It seems the error may have only been the library path. I have did the following to reset my path:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;export LD_LIBRARY_PATH=
source /opt/intel/bin/compilervars.sh intel64&lt;/PRE&gt;

&lt;P&gt;resulting in the following library path:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/mpi/intel64/lib:/opt/intel/compilers_and_libraries_2016.0.109/linux/ipp/../compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/ipp/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/mkl/lib/intel64:/opt/intel/compilers_and_libraries_2016.0.109/linux/tbb/lib/intel64/gcc4.4:/opt/intel/debugger_2016/libipt/intel64/lib:/opt/intel/compilers_and_libraries_2016.0.109/linux/daal/lib/intel64_lin:/opt/intel/compilers_and_libraries_2016.0.109/linux/daal/../compiler/lib/intel64_lin:&lt;/PRE&gt;

&lt;P&gt;Then I compiled as before and ran the tests. Numpy (of course) passed all tests. Scipy had 13 errors, which seemed to be genuine errors:&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;======================================================================
FAIL: test_definition (test_basic.TestIfftnSingle)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/fftpack/tests/test_basic.py", line 657, in test_definition
    assert_array_almost_equal_nulp(y,direct_idftn(x),self.maxnlp)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 1358, in assert_array_almost_equal_nulp
    raise AssertionError(msg)
AssertionError: X and Y are not equal to 3500 ULP

======================================================================
FAIL: test_lorentz (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 293, in test_lorentz
    3.7798193600109009e+00]),
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array([  1.000000e+03,   1.000000e-01,   3.800000e+00])
 y: array([  1.430678e+03,   1.339051e-01,   3.779819e+00])

======================================================================
FAIL: test_multi (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 190, in test_multi
    0.5101147161764654, 0.5173902330489161]),
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array([ 4. ,  2. ,  7. ,  0.4,  0.5])
 y: array([ 4.379988,  2.433306,  8.002885,  0.510115,  0.51739 ])

======================================================================
FAIL: test_pearson (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 236, in test_pearson
    np.array([5.4767400299231674, -0.4796082367610305]),
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array([ 1.,  1.])
 y: array([ 5.47674 , -0.479608])

======================================================================
FAIL: test_qhull.TestDelaunay.test_incremental('pathological-1-chunk-1',)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/spatial/tests/test_qhull.py", line 507, in check
    np.arange(points.shape[0]))
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 739, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 620, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(shapes (79,), (81,) mismatch)
 x: array([ 0,  2,  3,  4,  5,  6,  7,  8,  9, 11, 12, 13, 14, 15, 16, 17, 18,
       19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
       36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,...
 y: array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16,
       17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
       34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,...

======================================================================
FAIL: test_qhull.TestUtilities.test_degenerate_barycentric_transforms
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/spatial/tests/test_qhull.py", line 296, in test_degenerate_barycentric_transforms
    assert_(bad_count &amp;lt; 20, bad_count)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 53, in assert_
    raise AssertionError(smsg)
AssertionError: 26

======================================================================
FAIL: test_bdtrc (test_basic.TestCephes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 118, in test_bdtrc
    assert_equal(cephes.bdtrc(1,3,0.5),0.5)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 334, in assert_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal:
 ACTUAL: 0.50000000000000011
 DESIRED: 0.5

======================================================================
FAIL: test_bdtri (test_basic.TestCephes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 115, in test_bdtri
    assert_equal(cephes.bdtri(1,3,0.5),0.5)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 334, in assert_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal:
 ACTUAL: 0.49999999999999994
 DESIRED: 0.5

======================================================================
FAIL: test_cosm1 (test_basic.TestCephes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_basic.py", line 214, in test_cosm1
    assert_equal(cephes.cosm1(0),0.0)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 326, in assert_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal:
 ACTUAL: -0.0
 DESIRED: 0.0

======================================================================
FAIL: test_data.test_boost(&amp;lt;Data for eval_legendre_ld: legendre_p_ipp-legendre_p&amp;gt;,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_data.py", line 481, in _test_factory
    test.check(dtype=dtype)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/_testutils.py", line 292, in check
    assert_(False, "\n".join(msg))
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 53, in assert_
    raise AssertionError(smsg)
AssertionError: 
Max |adiff|: 7.49401e-16
Max |rdiff|: 7.92476e-14
Bad results (1 out of 140) for the following points (in output 0):
                          18.0             -0.8049191832542419 =&amp;gt;          -0.009106206044325216 !=          -0.009106206044324494  (rdiff          7.924759910919454e-14)

======================================================================
FAIL: test_data.test_boost(&amp;lt;Data for gammaincc: igamma_int_data_ipp-igamma_int_data&amp;gt;,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_data.py", line 481, in _test_factory
    test.check(dtype=dtype)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/_testutils.py", line 292, in check
    assert_(False, "\n".join(msg))
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 53, in assert_
    raise AssertionError(smsg)
AssertionError: 
Max |adiff|: 1.21569e-14
Max |rdiff|: 4.27465e-14
Bad results (1 out of 140) for the following points (in output 0):
                          36.5                            73.0 =&amp;gt;          8.570090512692315e-07 !=          8.570090512692681e-07  (rdiff          4.274654382528594e-14)

======================================================================
FAIL: test_data.test_boost(&amp;lt;Data for gdtrc_: igamma_int_data_ipp-igamma_int_data&amp;gt;,)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_data.py", line 481, in _test_factory
    test.check(dtype=dtype)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/_testutils.py", line 292, in check
    assert_(False, "\n".join(msg))
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 53, in assert_
    raise AssertionError(smsg)
AssertionError: 
Max |adiff|: 1.21569e-14
Max |rdiff|: 4.27465e-14
Bad results (1 out of 140) for the following points (in output 0):
                          36.5                            73.0 =&amp;gt;          8.570090512692315e-07 !=          8.570090512692681e-07  (rdiff          4.274654382528594e-14)

======================================================================
FAIL: test_orthogonal.test_js_roots
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_orthogonal.py", line 371, in test_js_roots
    verify_gauss_quad(roots(68.9, 2.25), evalf(68.9, 2.25), 5, atol=2e-14)
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/special/tests/test_orthogonal.py", line 283, in verify_gauss_quad
    assert_allclose(vv, np.eye(N), rtol, atol)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 1297, in assert_allclose
    verbose=verbose, header=header)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=1e-15, atol=2e-14

(mismatch 100.0%)
 x: array([[  1.000000e+00,  -2.932083e-14,   1.628550e-14,  -5.973276e-15,
         -1.360751e-15],
       [ -2.932083e-14,   1.000000e+00,  -1.985946e-14,   1.119072e-14,...
 y: array([[ 1.,  0.,  0.,  0.,  0.],
       [ 0.,  1.,  0.,  0.,  0.],
       [ 0.,  0.,  1.,  0.,  0.],...

----------------------------------------------------------------------
Ran 17005 tests in 117.640s

FAILED (KNOWNFAIL=97, SKIP=1181, failures=13)
&amp;lt;nose.result.TextTestResult run=17005 errors=0 failures=13&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;I tried again changed the "-O3" flag to "-O1" in both in both "numpy/distutils/intelcompiler.py" and "numpy/distutils/fcompiler/intel.py". And now both libraries pass all tests.&lt;/P&gt;

&lt;P&gt;The error in post 4 was based on using 2015 compiler and MKL + the &amp;nbsp;setting in post #2.&lt;/P&gt;

&lt;P&gt;If I also add the fPIC command and use -O3, the code compiles and scipy.test9) returns only three errors:&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;======================================================================
FAIL: test_lorentz (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 293, in test_lorentz
    3.7798193600109009e+00]),
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array([  1.000000e+03,   1.000000e-01,   3.800000e+00])
 y: array([  1.430678e+03,   1.339051e-01,   3.779819e+00])

======================================================================
FAIL: test_multi (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 190, in test_multi
    0.5101147161764654, 0.5173902330489161]),
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array([ 4. ,  2. ,  7. ,  0.4,  0.5])
 y: array([ 4.379988,  2.433306,  8.002885,  0.510115,  0.51739 ])

======================================================================
FAIL: test_pearson (test_odr.TestODR)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nfs/galaxy/unixhome/jmiller/scipy-test/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 236, in test_pearson
    np.array([5.4767400299231674, -0.4796082367610305]),
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/nfs/galaxy/unixhome/jmiller/numpy-test/lib/python2.7/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 6 decimals

(mismatch 100.0%)
 x: array([ 1.,  1.])
 y: array([ 5.47674 , -0.479608])

----------------------------------------------------------------------
Ran 17005 tests in 114.097s

FAILED (KNOWNFAIL=97, SKIP=1181, failures=3)
&amp;lt;nose.result.TextTestResult run=17005 errors=0 failures=3&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;It looks like I can use a lower optimization setting with this configuration to get everything working. Thank you for your help!&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Sat, 12 Sep 2015 03:57:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019190#M19654</guid>
      <dc:creator>Jonah_M_</dc:creator>
      <dc:date>2015-09-12T03:57:44Z</dc:date>
    </item>
    <item>
      <title>Hi Jonah, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019191#M19655</link>
      <description>&lt;P&gt;Hi Jonah,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks a lot for the report and verification. &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;It seems the O3 optimization will cause the numerical error in Scipy 15.1 as earlier version&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;STRONG style="box-sizing: border-box;"&gt;Appendix 1:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;EM style="box-sizing: border-box;"&gt;Known issues:&lt;/EM&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;SPAN style="line-height: 1.4;"&gt;&amp;nbsp;When the -O3 or -O2(default) compiler flags (more aggressive compiler optimization flags) used for the ifort, one of the scipy tests may fail and it is a known corner case, to avoid this, as a workaround you can use -O1.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;SPAN style="line-height: 1.4;"&gt;&amp;nbsp;would you please help to submit the issue to premier.intel.com to intel fortran or C compiler &amp;nbsp;or their forum:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x.&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x.&amp;nbsp;&lt;/A&gt;;&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;Thanks&lt;/P&gt;

&lt;P style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;Ying&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 01:20:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019191#M19655</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-09-14T01:20:20Z</dc:date>
    </item>
    <item>
      <title>Hi Ying,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019192#M19656</link>
      <description>&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;Okay, I've submitted the bug to the fortran compiler forum. The link is here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/593518" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/593518&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thank you for your help.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;Jonah&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 19:38:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Scipy-15-1-not-linked-properly-when-compiled-against-MKL/m-p/1019192#M19656</guid>
      <dc:creator>Jonah_M_</dc:creator>
      <dc:date>2015-09-15T19:38:57Z</dc:date>
    </item>
  </channel>
</rss>

