<?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 [icc + MKL 11.1 + NumPy] numpy.test() error: undefined symbol _intel_fast_memset in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/icc-MKL-11-1-NumPy-numpy-test-error-undefined-symbol-intel-fast/m-p/1019727#M19661</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I am trying to compile NumPy 1.8.1 with icc &lt;/SPAN&gt;14.0.1 20131008&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and MKL 11.1.&amp;nbsp;&lt;BR /&gt;
	T&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;he compilation&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;succeeds&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;, but when I run numpy.test() the test fails with this error message:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 1em; font-style: italic; line-height: 1.5;"&gt;ImportError: /tmp/tmpPXvMOC/test_array_from_pyobj_ext.so: undefined symbol: _intel_fast_memset&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am following&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;Intel's instructions&lt;/A&gt;, I run intel's compilervars.sh to setup the environment&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and then&amp;nbsp;build numpy with this command:&lt;/SPAN&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; font-style: italic;"&gt;python setup.py config --compiler=intelem --fcompiler=intelem &amp;nbsp;build_clib --compiler=intelem --fcompiler=intelem build_ext &amp;nbsp;--compiler=intelem --fcompiler=intelem install --prefix=$HOME/.local 2&amp;gt;&amp;amp;1 | tee -a BUILD.log&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px;"&gt;With nm I found out that the &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px; font-style: italic;"&gt;_intel_fast_memset&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px;"&gt;symbol is defined in libirc.so. I tried to add irc in site.cfg, but the error persists.&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px;"&gt;I also tried to compile numpy 1.9.0 and I still get the same error. I also tried to manually specify the libs in site.cfg instead of relying on mkl_rt, but the result is always the same.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The lib directories of the intel compiler are correctly set in the LD_LIBRARY_PATH, and the intel dynamic libraries are linked to _dotblas.so.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ldd build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so
	linux-vdso.so.1 =&amp;gt;  (0x00007fffa1dff000)
	libmkl_def.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_def.so (0x00007f8e60281000)
	libmkl_intel_lp64.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_intel_lp64.so (0x00007f8e5fb3d000)
	libmkl_intel_thread.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_intel_thread.so (0x00007f8e5eb7e000)
	libmkl_core.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_core.so (0x00007f8e5d4c0000)
	libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x00007f8e5d28e000)
	libpython2.7.so.1.0 =&amp;gt; /cineca/prod/tools/python/2.7.5/gnu--4.6.3/lib/libpython2.7.so.1.0 (0x00007f8e5ceb4000)
	libimf.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libimf.so (0x00007f8e5c9ec000)
	libsvml.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libsvml.so (0x00007f8e5bdf5000)
	libirng.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libirng.so (0x00007f8e5bbed000)
	libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007f8e5b969000)
	libiomp5.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libiomp5.so (0x00007f8e5b64e000)
	libgcc_s.so.1 =&amp;gt; /cineca/prod/compilers/gnu/4.6.3/none/lib64/libgcc_s.so.1 (0x00007f8e5b439000)
	libintlc.so.5 =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libintlc.so.5 (0x00007f8e5b1e2000)
	libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007f8e5ae4e000)
	libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007f8e5ac4a000)
	/lib64/ld-linux-x86-64.so.2 (0x0000003b0a000000)
	libutil.so.1 =&amp;gt; /lib64/libutil.so.1 (0x00007f8e5aa46000)&lt;/PRE&gt;

&lt;P&gt;My site.cfg, the numpy.test() log and the build log are attached, please let me know if you need anything else.&lt;BR /&gt;
	Thank you in advance for your help!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2014 13:28:27 GMT</pubDate>
    <dc:creator>Francesco_V_</dc:creator>
    <dc:date>2014-10-09T13:28:27Z</dc:date>
    <item>
      <title>[icc + MKL 11.1 + NumPy] numpy.test() error: undefined symbol _intel_fast_memset</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/icc-MKL-11-1-NumPy-numpy-test-error-undefined-symbol-intel-fast/m-p/1019727#M19661</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I am trying to compile NumPy 1.8.1 with icc &lt;/SPAN&gt;14.0.1 20131008&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and MKL 11.1.&amp;nbsp;&lt;BR /&gt;
	T&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;he compilation&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;succeeds&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;, but when I run numpy.test() the test fails with this error message:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 1em; font-style: italic; line-height: 1.5;"&gt;ImportError: /tmp/tmpPXvMOC/test_array_from_pyobj_ext.so: undefined symbol: _intel_fast_memset&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I am following&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;Intel's instructions&lt;/A&gt;, I run intel's compilervars.sh to setup the environment&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and then&amp;nbsp;build numpy with this command:&lt;/SPAN&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5; font-style: italic;"&gt;python setup.py config --compiler=intelem --fcompiler=intelem &amp;nbsp;build_clib --compiler=intelem --fcompiler=intelem build_ext &amp;nbsp;--compiler=intelem --fcompiler=intelem install --prefix=$HOME/.local 2&amp;gt;&amp;amp;1 | tee -a BUILD.log&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px;"&gt;With nm I found out that the &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px; font-style: italic;"&gt;_intel_fast_memset&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px;"&gt;symbol is defined in libirc.so. I tried to add irc in site.cfg, but the error persists.&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 12.8000001907349px; line-height: 15.609601020813px;"&gt;I also tried to compile numpy 1.9.0 and I still get the same error. I also tried to manually specify the libs in site.cfg instead of relying on mkl_rt, but the result is always the same.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The lib directories of the intel compiler are correctly set in the LD_LIBRARY_PATH, and the intel dynamic libraries are linked to _dotblas.so.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ldd build/lib.linux-x86_64-2.7/numpy/core/_dotblas.so
	linux-vdso.so.1 =&amp;gt;  (0x00007fffa1dff000)
	libmkl_def.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_def.so (0x00007f8e60281000)
	libmkl_intel_lp64.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_intel_lp64.so (0x00007f8e5fb3d000)
	libmkl_intel_thread.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_intel_thread.so (0x00007f8e5eb7e000)
	libmkl_core.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/mkl/lib/intel64/libmkl_core.so (0x00007f8e5d4c0000)
	libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x00007f8e5d28e000)
	libpython2.7.so.1.0 =&amp;gt; /cineca/prod/tools/python/2.7.5/gnu--4.6.3/lib/libpython2.7.so.1.0 (0x00007f8e5ceb4000)
	libimf.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libimf.so (0x00007f8e5c9ec000)
	libsvml.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libsvml.so (0x00007f8e5bdf5000)
	libirng.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libirng.so (0x00007f8e5bbed000)
	libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007f8e5b969000)
	libiomp5.so =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libiomp5.so (0x00007f8e5b64e000)
	libgcc_s.so.1 =&amp;gt; /cineca/prod/compilers/gnu/4.6.3/none/lib64/libgcc_s.so.1 (0x00007f8e5b439000)
	libintlc.so.5 =&amp;gt; /cineca/prod/compilers/intel/cs-xe-2013/binary/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libintlc.so.5 (0x00007f8e5b1e2000)
	libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007f8e5ae4e000)
	libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007f8e5ac4a000)
	/lib64/ld-linux-x86-64.so.2 (0x0000003b0a000000)
	libutil.so.1 =&amp;gt; /lib64/libutil.so.1 (0x00007f8e5aa46000)&lt;/PRE&gt;

&lt;P&gt;My site.cfg, the numpy.test() log and the build log are attached, please let me know if you need anything else.&lt;BR /&gt;
	Thank you in advance for your help!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 13:28:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/icc-MKL-11-1-NumPy-numpy-test-error-undefined-symbol-intel-fast/m-p/1019727#M19661</guid>
      <dc:creator>Francesco_V_</dc:creator>
      <dc:date>2014-10-09T13:28:27Z</dc:date>
    </item>
  </channel>
</rss>

