<?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 ​It seems the same problem in in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163249#M28044</link>
    <description>&lt;P&gt;​It seems the same problem in &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/748309&amp;nbsp;.&amp;nbsp;and" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/748309&amp;nbsp;.&amp;nbsp;and&lt;/A&gt; &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/733207" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/733207&lt;/A&gt; . &amp;nbsp;which link 3 separate libraries instead of one library mkl_rt.dll&lt;/P&gt;

&lt;P&gt;we had asked Python numpy committee to fix the problem, could you please try Intel distribute python?&lt;/P&gt;

&lt;P&gt;or other way, like&amp;nbsp;try&amp;nbsp;set environment or do preload&amp;nbsp;dll etc. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is Linux&lt;/P&gt;

&lt;PRE&gt;export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_avx2.so:/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:/opt/intel/lib/intel64_lin/libiomp5.so&lt;/PRE&gt;

&lt;P&gt;In windows, setting env by mkl/bin/mklvars.bat intel64, then run your python in same environment&lt;/P&gt;

&lt;P&gt;or in python to add the library manually sys.path.append(" your path to the library")&amp;nbsp; or &lt;A href="https://stackoverflow.com/questions/35478526/pyintaller-numpy-intel-mkl-fatal-error-cannot-load-mkl-intel-thread-dll" target="_blank"&gt;https://stackoverflow.com/questions/35478526/pyintaller-numpy-intel-mkl-fatal-error-cannot-load-mkl-intel-thread-dll&lt;/A&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	Best Regards,&lt;BR /&gt;
	&lt;BR /&gt;
	Ying&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 03:04:47 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2017-12-01T03:04:47Z</dc:date>
    <item>
      <title>python mkl error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163247#M28042</link>
      <description>&lt;P&gt;Multiplying numpy arrays using the dot method, when array elements are float, is producing Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.&lt;/P&gt;

&lt;P&gt;Here is the simplest code I can think of to create this problem.&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;import numpy as np

A = np.array([[1,2],[2,1.1]])
x = np.array([3,4])

b = A.dot(x)

print(b)
&lt;/PRE&gt;

&lt;P&gt;Output:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.&lt;/P&gt;

&lt;P&gt;"The procedure entry point mkl_aa_fw_get_workdivision could not be located in the dynamic link library C:\Users\..\Anaconda\Library\bin\mkl_intel_thead.dll"&lt;/P&gt;

&lt;P&gt;Note with integers it works fine (change above matrix to integer value)&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;import numpy as np

A = np.array([[1,2],[2,1]])
x = np.array([3,4])

b = A.dot(x)

print(b)
&lt;/PRE&gt;

&lt;P&gt;Output = [11 10]&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 07:27:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163247#M28042</guid>
      <dc:creator>dog__shaw</dc:creator>
      <dc:date>2017-11-26T07:27:34Z</dc:date>
    </item>
    <item>
      <title>thanks for the example. I am</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163248#M28043</link>
      <description>&lt;P&gt;thanks for the example. I am not sure about which version are you using, but quick check the problem with the latest Intel Distribute Python doesn't reveal some problem:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;mkl_Forums\u749056&amp;gt;python test_u749056.py&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;[11 10]&lt;/P&gt;

&lt;P&gt;\mkl_Forums\u749056&amp;gt;python test_u749056.py&lt;BR /&gt;
	[ 11.&amp;nbsp; &amp;nbsp;10.4]&lt;/P&gt;

&lt;P&gt;\mkl_Forums\u749056&amp;gt;python --version&lt;BR /&gt;
	Python 3.6.3 :: Intel Corporation&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:20:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163248#M28043</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-11-27T15:20:06Z</dc:date>
    </item>
    <item>
      <title>​It seems the same problem in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163249#M28044</link>
      <description>&lt;P&gt;​It seems the same problem in &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/748309&amp;nbsp;.&amp;nbsp;and" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/748309&amp;nbsp;.&amp;nbsp;and&lt;/A&gt; &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/733207" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/733207&lt;/A&gt; . &amp;nbsp;which link 3 separate libraries instead of one library mkl_rt.dll&lt;/P&gt;

&lt;P&gt;we had asked Python numpy committee to fix the problem, could you please try Intel distribute python?&lt;/P&gt;

&lt;P&gt;or other way, like&amp;nbsp;try&amp;nbsp;set environment or do preload&amp;nbsp;dll etc. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is Linux&lt;/P&gt;

&lt;PRE&gt;export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_avx2.so:/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:/opt/intel/lib/intel64_lin/libiomp5.so&lt;/PRE&gt;

&lt;P&gt;In windows, setting env by mkl/bin/mklvars.bat intel64, then run your python in same environment&lt;/P&gt;

&lt;P&gt;or in python to add the library manually sys.path.append(" your path to the library")&amp;nbsp; or &lt;A href="https://stackoverflow.com/questions/35478526/pyintaller-numpy-intel-mkl-fatal-error-cannot-load-mkl-intel-thread-dll" target="_blank"&gt;https://stackoverflow.com/questions/35478526/pyintaller-numpy-intel-mkl-fatal-error-cannot-load-mkl-intel-thread-dll&lt;/A&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	Best Regards,&lt;BR /&gt;
	&lt;BR /&gt;
	Ying&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 03:04:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/python-mkl-error/m-p/1163249#M28044</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-12-01T03:04:47Z</dc:date>
    </item>
  </channel>
</rss>

