<?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 Runtime error of numpy in MKL 11.1 on 32bit Linux in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828253#M5322</link>
    <description>I am having the same problem as the OP when building a python module &lt;BR /&gt;MKL 10.2 Update 5, Intel 11.1 compilers, Linux 64-bit&lt;BR /&gt;&lt;BR /&gt;When the python module loads at runtime I get&lt;BR /&gt;&lt;BR /&gt;*** libmkl_mc.so *** failed with error :libmkl_mc.so: undefined symbol: mkl_dft_commit_descriptor_s_c2c_md_omp&lt;BR /&gt;*** libmkl_def.so *** failed with error : ibmkl_def.so: undefined symbol: mkl_dft_commit_descriptor_s_c2c_md_omp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The --startgroup and --endgroup did not help.&lt;BR /&gt;&lt;BR /&gt;-L$(MKLROOT)/lib/em64t $(MKLROOT)/lib/em64t/libmkl_solver_lp64.a -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -liomp5 -lpthread&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Jun 2010 22:42:35 GMT</pubDate>
    <dc:creator>AndrewC</dc:creator>
    <dc:date>2010-06-17T22:42:35Z</dc:date>
    <item>
      <title>Runtime error of numpy in MKL 11.1 on 32bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828249#M5318</link>
      <description>&lt;P&gt;We built quite a number of packages with various versions of Intels compilers. Currently we are facing a problem during the port of numpy v1.4.1 with Intel compilers and MKL 11.1.059 on RHEL 3 update 9 for 32bit.&lt;/P&gt;&lt;P&gt;One library target within the numpy package, the python extension lapack_lite.so, depends on MKL. We've tried many combinations of MKL libraries i.e. mkl_core, mkl_sequential, iomp5, guide,  The best case scenario is that import numpy works, but &lt;STRONG&gt;at latest we get a crash when running tests related to lapack library and MKL itself.&lt;/STRONG&gt; We even tried to link lapack_lite.so manually and used the link line from Intels MKL link line advisor, but got same problem again. The same happens, if we run 'numpy.test()'.&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;Python 2.5.1 (r251:54863, Apr 26 2010, 17:46:18)&lt;BR /&gt;[GCC Intel C++ gcc 3.2 mode] on linux2&lt;BR /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;&amp;gt;&amp;gt;&amp;gt; import numpy&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; numpy.matrix([[1, 5, 10], [1.0, 3j, 4]], numpy.complex128).T.I.H&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;*** libmkl_p4m.so *** failed with error :&lt;BR /&gt;/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/lib/32/libmkl_p4m.so: &lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;undefined symbol: mkl_dft_commit_descriptor_s_c2c_md_omp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;*** libmkl_def.so *** failed with error :&lt;BR /&gt;/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/lib/32/libmkl_def.so: &lt;BR /&gt;undefined symbol: mkl_dft_commit_descriptor_s_c2c_md_omp&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;MKL FATAL ERROR: Cannot load neither libmkl_p4m.so nor libmkl_def.so&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As you see beneath the mkl/lib/32 folder is in our LD_LIBRARY_PATH and thus  despite of the error message above  we expect that we are still doing something wrong at linktime. &lt;STRONG&gt;Which libraries out of MKL 11.1 should we link against our shared library lapack_lite.so?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Or might the problem originate in the way we linked the python executable? Anyway, we never had to link python itself against MKL and also didnt this time &lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;further details&lt;BR /&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The site.cfg file used to build numpy:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[mkl]&lt;/P&gt;&lt;P&gt;library_dirs = /share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/lib/32:&lt;/P&gt;&lt;P&gt;/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/lib/ia32&lt;/P&gt;&lt;P&gt;include_dirs = /share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/include&lt;/P&gt;&lt;P&gt;lapack_libs = mkl_lapack,&lt;/P&gt;&lt;P&gt;mkl_libs = mkl_solver, mkl_intel, mkl_intel_thread, mkl_core, iomp5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The link line for lapack_lite.so:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;icc -shared build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o build/temp.linux-i686-2.5/numpy/linalg/python_xerbla.o -L/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/lib/32 -L/share/astlib/temp/ia32-unknown-linux_r3i11/Python-2.5.1/lib -Lbuild/temp.linux-i686-2.5 -lmkl_lapack -lmkl_solver -lmkl_intel -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lpython2.5 o build/lib.linux-i686-2.5/numpy/linalg/lapack_lite.so&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The build command:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/share/astlib/temp/ia32-unknown-linux_r3i11/Python-2.5.1/bin/python&lt;/P&gt;&lt;P&gt;setup.py config --compiler=intel build_clib --compiler=intel build_ext --compiler=intel install --prefix=/share/astlib/temp/ia32-unknown-linux_r3i11/numpy-1.4.1&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;the $LD_LIBRARY_PATH:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/usr/local/lib:/share/astenv/devtools/bin/bin.ia32-unknown-linux:/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/lib/32:/share/astlib/temp/ia32-unknown-linux_r3i11/Python-2.5.1/lib:/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/lib/ia32&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2010 09:45:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828249#M5318</guid>
      <dc:creator>ASTTools</dc:creator>
      <dc:date>2010-05-03T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Runtime error of numpy in MKL 11.1 on 32bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828250#M5319</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please try Link Line Advisor at the top of MKL Forum for correct libraries to link (with -Wl,--start-group ... -Wl,--end-group brackets there)</description>
      <pubDate>Mon, 03 May 2010 16:39:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828250#M5319</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-05-03T16:39:43Z</dc:date>
    </item>
    <item>
      <title>Runtime error of numpy in MKL 11.1 on 32bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828251#M5320</link>
      <description>&lt;P&gt;I've originally used the libraries from link-line-advisor, but did not use the --start/end-group linker options, because numpy's makesupport is using some python-scripts to derive thefinally used link line and I can only influence the list and order of used libraries. It would require extra efforts to get the link line set with the group options.&lt;/P&gt;&lt;P&gt;Therefore I tried manually to link with the group options and the situation improved, but it still didn't solve the issue. This is the new error we get at runtime:&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;Python 2.5.1 (r251:54863, Apr 26 2010, 17:46:18) [GCC Intel C++ gcc 3.2 mode] on linux2 Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import numpy&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; numpy.matrix([[1, 5, 10], [1.0, 3j, 4]], numpy.complex128).T.I.H&lt;BR /&gt;Python-2.5.1/bin/python: relocation error: &lt;BR /&gt;/share/astenv/devtools/compilers/ia32-unknown-linux/intel/c11.1.059_f11.1.059/mkl/lib/32/libmkl_lapack.so: &lt;BR /&gt;&lt;STRONG&gt;undefined symbol: mkl_serv_lsame&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the link line used to link lapack_lite.so:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;icc -shared -sox&lt;BR /&gt;-L/share/astlib/temp/ia32-unknown-linux_r3i11/autoconf-2.59/lib&lt;BR /&gt;-L/share/astlib/temp/ia32-unknown-linux_r3i11/automake-1.9.6/lib&lt;BR /&gt;-L/share/astlib/temp/ia32-unknown-linux_r3i11/libtool-1.5.22/lib&lt;BR /&gt;-L/share/astlib/temp/ia32-unknown-linux_r3i11/Python-2.5.1/lib&lt;BR /&gt;-I/share/astlib/temp/ia32-unknown-linux_r3i11/autoconf-2.59/include&lt;BR /&gt;-I/share/astlib/temp/ia32-unknown-linux_r3i11/automake-1.9.6/include&lt;BR /&gt;-I/share/astlib/temp/ia32-unknown-linux_r3i11/libtool-1.5.22/include&lt;BR /&gt;-I/share/astlib/temp/ia32-unknown-linux_r3i11/Python-2.5.1/include&lt;BR /&gt;build/temp.linux-i686-2.5/numpy/linalg/lapack_litemodule.o&lt;BR /&gt;build/temp.linux-i686-2.5/numpy/linalg/python_xerbla.o&lt;BR /&gt;-L/share/astenv/devtools/compilers/ia32-unknown-linux_r3i11/intel/compiler111/mkl/lib/32&lt;BR /&gt;-L/share/astlib/temp/ia32-unknown-linux_r3i11/Python-2.5.1/lib&lt;BR /&gt;-Lbuild/temp.linux-i686-2.5 -L$MKLPATH $MKLPATH/libmkl_solver.a -Wl,--start-group -lmkl_intel -lmkl_intel_thread -lmkl_core -Wl,--end-group -openmp -lpthread -o build/lib.linux-i686-2.5/numpy/linalg/lapack_lite.so&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;As the link-line-advisor suggested, we I &lt;STRONG&gt;did not explicitly link against '-lmkl_lapack', but if I add it&lt;/STRONG&gt; to the link line, I get the same errors as before with mkl_def and mkl_p4m undefined symbols at runtime. &lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2010 12:23:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828251#M5320</guid>
      <dc:creator>ASTTools</dc:creator>
      <dc:date>2010-05-04T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Runtime error of numpy in MKL 11.1 on 32bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828252#M5321</link>
      <description>will replacing the-openmp by the -liomp5 help in this case?</description>
      <pubDate>Wed, 05 May 2010 08:25:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828252#M5321</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-05-05T08:25:15Z</dc:date>
    </item>
    <item>
      <title>Runtime error of numpy in MKL 11.1 on 32bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828253#M5322</link>
      <description>I am having the same problem as the OP when building a python module &lt;BR /&gt;MKL 10.2 Update 5, Intel 11.1 compilers, Linux 64-bit&lt;BR /&gt;&lt;BR /&gt;When the python module loads at runtime I get&lt;BR /&gt;&lt;BR /&gt;*** libmkl_mc.so *** failed with error :libmkl_mc.so: undefined symbol: mkl_dft_commit_descriptor_s_c2c_md_omp&lt;BR /&gt;*** libmkl_def.so *** failed with error : ibmkl_def.so: undefined symbol: mkl_dft_commit_descriptor_s_c2c_md_omp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The --startgroup and --endgroup did not help.&lt;BR /&gt;&lt;BR /&gt;-L$(MKLROOT)/lib/em64t $(MKLROOT)/lib/em64t/libmkl_solver_lp64.a -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -liomp5 -lpthread&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jun 2010 22:42:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828253#M5322</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2010-06-17T22:42:35Z</dc:date>
    </item>
    <item>
      <title>Runtime error of numpy in MKL 11.1 on 32bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828254#M5323</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=334681" class="basic" href="https://community.intel.com/en-us/profile/334681/"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;will replacing the-openmp by the -liomp5 help in this case?&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;-openmp implicitly adds -liomp5. If using an integrated icc/mkl package, it should make no difference.</description>
      <pubDate>Fri, 18 Jun 2010 01:37:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Runtime-error-of-numpy-in-MKL-11-1-on-32bit-Linux/m-p/828254#M5323</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-06-18T01:37:16Z</dc:date>
    </item>
  </channel>
</rss>

