<?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 Problem with numpy and MKL (cannot find __kmpc_reduce_nowait) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785372#M1805</link>
    <description>In order for your application to find the MKL .so files at run time, the usual mechanism is to set LD_LIBRARY_PATH, as would be done by sourceing the mklvars script, or the compilervars script if your MKL was provided with an Intel compiler.</description>
    <pubDate>Wed, 30 Nov 2011 04:43:25 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2011-11-30T04:43:25Z</dc:date>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785366#M1799</link>
      <description>I apologize for another numpy question.&lt;BR /&gt;I read many articles but I could not find the solution for my problem.&lt;BR /&gt;&lt;BR /&gt;I am trying to install numpy with MKL and install went well.&lt;BR /&gt;However, whenever I try to import numpy, a following error message shows:&lt;BR /&gt;&lt;BR /&gt;File "&lt;STDIN&gt;", line 1, in &lt;MODULE&gt;&lt;BR /&gt; File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", line 137, in &lt;MODULE&gt;&lt;BR /&gt; import add_newdocs&lt;BR /&gt; File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 9, in &lt;MODULE&gt;&lt;BR /&gt; from numpy.lib import add_newdoc&lt;BR /&gt; File "/usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 13, in &lt;MODULE&gt;&lt;BR /&gt; from polynomial import *&lt;BR /&gt; File "/usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 17, in &lt;MODULE&gt;&lt;BR /&gt; from numpy.linalg import eigvals, lstsq&lt;BR /&gt; File "/usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py", line 48, in &lt;MODULE&gt;&lt;BR /&gt; from linalg import *&lt;BR /&gt; File "/usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 23, in &lt;MODULE&gt;&lt;BR /&gt; from numpy.linalg import lapack_lite&lt;BR /&gt;ImportError: /opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64/libmkl_intel_thread.so: undefined symbol: __kmpc_reduce_nowait&lt;BR /&gt;&lt;BR /&gt;I think this is related with openmp, but I cannot find a solution.&lt;BR /&gt;&lt;BR /&gt;Here is my environments:&lt;BR /&gt;&lt;BR /&gt;* Ubuntu 11.10&lt;BR /&gt;* Numpy1.6.1&lt;BR /&gt;* python 2.7.2&lt;BR /&gt;* libgomp.so.1.0.0&lt;BR /&gt;* core i7 (quad)&lt;BR /&gt;* Intel Composer1.7.256&lt;BR /&gt;&lt;BR /&gt;* LD_LIBRARY_PATH = /usr/lib:/opt/intel/composer_xe_2011_sp1.7.256/compiler/include:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/ipp/../compiler/lib/intel64:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/ipp/lib/intel64:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/tbb/lib/intel64//cc4.1.0_libc2.4_kernel2.6.16.21:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/debugger/lib/intel64:&lt;BR /&gt;/opt/intel/composer_xe_2011_sp1.7.256/mpirt/lib/intel64&lt;BR /&gt;(obtained by source /opt/intel/composer_xe_2011_sp1.7.256/bin/compilervars.sh intel64 and . /opt/intel/composer_xe_2011_sp1.7.256/mkl/bin/intel64/mklvars_intel64.sh)&lt;BR /&gt;&lt;BR /&gt;*site.cfg&lt;BR /&gt;[mkl]&lt;BR /&gt;library_dirs = /opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64&lt;BR /&gt;include_dirs = /opt/intel/composer_xe_2011_sp1.7.256/mkl/include&lt;BR /&gt;mkl_libs = mkl_intel_lp64,mkl_intel_thread,mkl_core,mkl_mc&lt;BR /&gt;(I tried mkl_libs = mkl_rt as well)&lt;BR /&gt;&lt;BR /&gt;complie commad&lt;BR /&gt;icc -openmp -lpthread -O2 -g -xSSE4.2 -DMKL_ILP64 -fPIC&lt;BR /&gt;&lt;BR /&gt;Any help would be very appreciate.&lt;BR /&gt;&lt;BR /&gt;sincerely.&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/STDIN&gt;</description>
      <pubDate>Tue, 29 Nov 2011 06:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785366#M1799</guid>
      <dc:creator>winterforest</dc:creator>
      <dc:date>2011-11-29T06:12:34Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785367#M1800</link>
      <description>&lt;DIV&gt;two notes regarding this issue:&lt;/DIV&gt;- please try to explicitly addlibiomp5 to your cfg files&lt;DIV&gt;- compiler option -DMKL_ILP64 is not compatible with LP64 libraries you are using.Linking of an application compiled with the -DMKL_ILP64 option to the LP64 librariesmay result in unpredictable consequences and erroneous output.&lt;/DIV&gt;&lt;DIV&gt;please remove this option and check how it will works.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2011 06:37:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785367#M1800</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-11-29T06:37:56Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785368#M1801</link>
      <description>Can you try setting LD_RUN_PATH pointing to /opt/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64 ?&lt;BR /&gt;&lt;BR /&gt;--Vipin</description>
      <pubDate>Tue, 29 Nov 2011 06:40:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785368#M1801</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2011-11-29T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785369#M1802</link>
      <description>Thanks for quick replies!&lt;BR /&gt;&lt;BR /&gt;I tried all of them, but it still does not work.&lt;BR /&gt;&lt;BR /&gt;1) settinh ld_run_path did not work.. &lt;BR /&gt;2) removing compile option did not work (icc -openmp -lpthread -O2 -g -xSSE4.2 -fPIC)&lt;BR /&gt;3) adding iomp5 did not work. As for libiomp5.so and libiomp5.a, I had to copy it from compiler/lib/intel64/ to mkl/lib/intel64/, since it was not at mkl lib.&lt;BR /&gt;lapack library seems going well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lapack_mkl_info:&lt;BR /&gt; FOUND:&lt;BR /&gt; libraries = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']&lt;BR /&gt; library_dirs = ['/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64']&lt;BR /&gt; define_macros = [('SCIPY_MKL_H', None)]&lt;BR /&gt; include_dirs = ['/opt/intel/composer_xe_2011_sp1.7.256/mkl/include']&lt;BR /&gt;&lt;BR /&gt; FOUND:&lt;BR /&gt; libraries = ['mkl_lapack', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']&lt;BR /&gt; library_dirs = ['/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64']&lt;BR /&gt; define_macros = [('SCIPY_MKL_H', None)]&lt;BR /&gt; include_dirs = ['/opt/intel/composer_xe_2011_sp1.7.256/mkl/include']&lt;BR /&gt;&lt;BR /&gt; FOUND:&lt;BR /&gt; libraries = ['mkl_lapack', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']&lt;BR /&gt; library_dirs = ['/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64']&lt;BR /&gt; define_macros = [('SCIPY_MKL_H', None)]&lt;BR /&gt; include_dirs = ['/opt/intel/composer_xe_2011_sp1.7.256/mkl/include']&lt;BR /&gt;&lt;BR /&gt;still I have a message &lt;BR /&gt;from numpy.linalg import lapack_lite&lt;BR /&gt;ImportError: /opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64/libmkl_intel_thread.so: undefined symbol: __kmpc_reduce_nowait&lt;BR /&gt;&lt;BR /&gt;I wonder why kmpc_reduce_nowait is not defined in libmkl_intel_thread.so.&lt;BR /&gt;Also how I can change import libiomp5.so instead of libmkl_intel_thread.&lt;BR /&gt;&lt;BR /&gt;I apologize for bothering you and appreciate your help!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2011 09:26:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785369#M1802</guid>
      <dc:creator>winterforest</dc:creator>
      <dc:date>2011-11-29T09:26:21Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785370#M1803</link>
      <description>In case it wasn't clear from the previous replies, libmkl_intel_thread makes the OpenMP implementation library calls for MKL, but those functions are defined in libiomp5. You must link against that library, and (if linking the dynamic version) have it available at run time. libiomp5 also supports compiler OpenMP and auto-parallel, and you would not want multiple implementations of the functions in case OpenMP is in use both from within MKL and by compiled code. It's not as if MKL was designed only for your numpy usage.</description>
      <pubDate>Tue, 29 Nov 2011 13:13:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785370#M1803</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-11-29T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785371#M1804</link>
      <description>Thank you TimP. I slightly understood the structure of MKL and OpenMP.&lt;BR /&gt;&lt;BR /&gt;After configuring LD_RUN_PATH, python path, and install configuration, still I get the same error.&lt;BR /&gt;As a light linux-user, I wish everything would work by following an instruction and user guide..&lt;BR /&gt;(I referred here: &lt;A href="http://software.intel.com/en-us/articles/numpy-user-note/" target="_blank"&gt;http://software.intel.com/en-us/articles/numpy-user-note/&lt;/A&gt; and was helped a lot by install_var*) &lt;BR /&gt;Perhaps your MKL is not for me;;&lt;BR /&gt;&lt;BR /&gt;Anyway, thank all of you for a help!&lt;BR /&gt;&lt;BR /&gt;sincerely.</description>
      <pubDate>Wed, 30 Nov 2011 04:01:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785371#M1804</guid>
      <dc:creator>winterforest</dc:creator>
      <dc:date>2011-11-30T04:01:38Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785372#M1805</link>
      <description>In order for your application to find the MKL .so files at run time, the usual mechanism is to set LD_LIBRARY_PATH, as would be done by sourceing the mklvars script, or the compilervars script if your MKL was provided with an Intel compiler.</description>
      <pubDate>Wed, 30 Nov 2011 04:43:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785372#M1805</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-11-30T04:43:25Z</dc:date>
    </item>
    <item>
      <title>Problem with numpy and MKL (cannot find __kmpc_reduce_nowait)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785373#M1806</link>
      <description>Thank you! Timp. I finally succeeded to install it.&lt;BR /&gt;&lt;BR /&gt;I edited site.cfg like this:&lt;BR /&gt;&lt;BR /&gt;[mkl]&lt;BR /&gt;library_dirs = /opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64&lt;BR /&gt;include_dirs = /opt/intel/composer_xe_2011_sp1.7.256/mkl/include&lt;BR /&gt;mkl_libs = mkl_def, mkl_intel_lp64,mkl_intel_thread,mkl_core&lt;BR /&gt;lapack_libs =&lt;BR /&gt;&lt;BR /&gt;mkl_def was the key.&lt;BR /&gt;I am looking forward to using it.&lt;BR /&gt;&lt;BR /&gt;yours sincerely&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Dec 2011 04:09:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-numpy-and-MKL-cannot-find-kmpc-reduce-nowait/m-p/785373#M1806</guid>
      <dc:creator>winterforest</dc:creator>
      <dc:date>2011-12-02T04:09:26Z</dc:date>
    </item>
  </channel>
</rss>

