<?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 Thanks Robert, I was missing in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046995#M84</link>
    <description>&lt;P&gt;Thanks Robert, I was missing the 'lib' part of the name.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 14:22:41 GMT</pubDate>
    <dc:creator>RL5</dc:creator>
    <dc:date>2017-02-17T14:22:41Z</dc:date>
    <item>
      <title>Configure number of processors available to MKL NumPy</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046991#M80</link>
      <description>&lt;P&gt;Is there a config file or a command line parameter to set the number of available processors for MKLnumpy to take advantage of? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 16:07:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046991#M80</guid>
      <dc:creator>Gilbert_F_</dc:creator>
      <dc:date>2015-08-10T16:07:51Z</dc:date>
    </item>
    <item>
      <title>Welcome to the forum and</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046992#M81</link>
      <description>&lt;P&gt;Welcome to the forum&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and thank you for the question!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;MKL uses the best number of threads by default, e.g. (on Windows):&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;gt; python -c "import ctypes; mkl_rt = ctypes.CDLL('mkl_rt.dll'); print mkl_rt.mkl_get_max_threads()"
16&lt;/PRE&gt;

&lt;P&gt;If you want to change it, set&amp;nbsp;MKL_NUM_THREADS environment variable to specify the number of threads to run in parallel, e.g.:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;gt; set MKL_NUM_THREADS=1
&amp;gt; python -c "import ctypes; mkl_rt = ctypes.CDLL('mkl_rt.dll'); print mkl_rt.mkl_get_max_threads()"
1&lt;/PRE&gt;

&lt;P&gt;Please see &lt;A href="https://software.intel.com/en-us/articles/recommended-settings-for-calling-intel-mkl-routines-from-multi-threaded-applications"&gt;this blog &lt;/A&gt;for more information regarding recommended environment variable settings for multithreading MKL. Or&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;refer to MKL threading control API &lt;A href="https://software.intel.com/en-us/node/522112"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2015 21:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046992#M81</guid>
      <dc:creator>Anton_M_Intel</dc:creator>
      <dc:date>2015-08-10T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Anton Malakhov (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046993#M82</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Anton Malakhov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;gt; python -c "import ctypes; mkl_rt = ctypes.CDLL('mkl_rt.dll'); print mkl_rt.mkl_get_max_threads()"
16&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How does one check the number of threads in linux?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:19:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046993#M82</guid>
      <dc:creator>RL5</dc:creator>
      <dc:date>2017-02-17T10:19:53Z</dc:date>
    </item>
    <item>
      <title>For linux, you need to change</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046994#M83</link>
      <description>&lt;PRE class="brush:bash;"&gt;For linux, you need to change the name of the shared library:
python -c "import ctypes; mkl_rt = ctypes.CDLL('libmkl_rt.so'); print(mkl_rt.mkl_get_max_threads())"
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:05:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046994#M83</guid>
      <dc:creator>Robert_C_Intel</dc:creator>
      <dc:date>2017-02-17T13:05:38Z</dc:date>
    </item>
    <item>
      <title>Thanks Robert, I was missing</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046995#M84</link>
      <description>&lt;P&gt;Thanks Robert, I was missing the 'lib' part of the name.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 14:22:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046995#M84</guid>
      <dc:creator>RL5</dc:creator>
      <dc:date>2017-02-17T14:22:41Z</dc:date>
    </item>
    <item>
      <title>For future reference, on a</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046996#M85</link>
      <description>&lt;P&gt;For future reference, on a Mac you simply change "mkl_rt.dll"/"libmkl_rt.so" to "libmkl_rt.dylib", like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```python&lt;/P&gt;&lt;P&gt;python -c "import ctypes; mkl_rt = ctypes.CDLL('libmkl_rt.dylib'); print(mkl_rt.mkl_get_max_threads())"&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 15:16:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/Configure-number-of-processors-available-to-MKL-NumPy/m-p/1046996#M85</guid>
      <dc:creator>Zhanwen_C_</dc:creator>
      <dc:date>2019-04-05T15:16:10Z</dc:date>
    </item>
  </channel>
</rss>

