<?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 We have a function called mkl in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963897#M16077</link>
    <description>&lt;P&gt;We have a function called mkl_get_max_threads(), you can find the details here.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/node/471142"&gt;http://software.intel.com/en-us/node/471142&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2014 05:20:43 GMT</pubDate>
    <dc:creator>VipinKumar_E_Intel</dc:creator>
    <dc:date>2014-01-27T05:20:43Z</dc:date>
    <item>
      <title>How do I get the current number of MKL threads</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963894#M16074</link>
      <description>&lt;P&gt;Hi, I'm trying to make a section of code that runs with a certain number of MKL threads without affecting the number of MKL threads used in other sections of the code. To do this I want to store the status of the MKL_DYNAMIC and the MKL_NUM_THREADS parameters at a given moment in time.&lt;/P&gt;

&lt;P&gt;I know that I can use the calls mkl_set_num_threads and mkl_set_dynamic to define the number of threads used by MKL, and that there's a&amp;nbsp;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;mkl_get_dynamic&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5; color: rgb(0, 128, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5; color: rgb(0, 128, 0);"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;call, however there's no mkl_get_num_threads(), there's only a mkl_get_max_threads().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Why is it a max and not a num?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Is there a way to get the current number of mkl threads? Is it reliable to use the omp_get_num_threads to know this?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE&gt;

&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2014 01:45:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963894#M16074</guid>
      <dc:creator>Santiago_P_</dc:creator>
      <dc:date>2014-01-21T01:45:58Z</dc:date>
    </item>
    <item>
      <title>You can try to use  mkl_set</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963895#M16075</link>
      <description>&lt;P&gt;You can try to use &amp;nbsp;&lt;SPAN class="kwd" style="font-family: 'Courier New', Courier, monospace; color: rgb(51, 51, 51); font-size: 13.600000381469727px; line-height: 20px;"&gt;mkl_set_num_threads&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-family: 'Courier New', Courier, monospace; color: rgb(51, 51, 51); font-size: 13.600000381469727px; line-height: 20px;"&gt;( #ofThreads&lt;/SPAN&gt;&lt;SPAN class="sep" style="font-family: 'Courier New', Courier, monospace; color: rgb(51, 51, 51); font-size: 13.600000381469727px; line-height: 20px;"&gt;&amp;nbsp;) routine for this reasons.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 02:30:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963895#M16075</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-01-21T02:30:35Z</dc:date>
    </item>
    <item>
      <title>Thanks Gennady but I need to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963896#M16076</link>
      <description>&lt;P&gt;Thanks Gennady but I need to know how to get the current number of MKL threads not how to set them.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 19:08:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963896#M16076</guid>
      <dc:creator>Santiago_P_</dc:creator>
      <dc:date>2014-01-21T19:08:02Z</dc:date>
    </item>
    <item>
      <title>We have a function called mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963897#M16077</link>
      <description>&lt;P&gt;We have a function called mkl_get_max_threads(), you can find the details here.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/node/471142"&gt;http://software.intel.com/en-us/node/471142&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 05:20:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963897#M16077</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2014-01-27T05:20:43Z</dc:date>
    </item>
    <item>
      <title>mkl_get_max_threads() reports</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963898#M16078</link>
      <description>&lt;P&gt;mkl_get_max_threads()&amp;nbsp;reports current maximum number of threads MKL could use and&amp;nbsp;it is the&amp;nbsp;number of cores in the system if nothing was set, or what was set by mkl_set_num_threads. MKL could use a less number of threads also for example if a function call is too small.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 08:43:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963898#M16078</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2014-01-27T08:43:30Z</dc:date>
    </item>
    <item>
      <title>Thank for the link to the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963899#M16079</link>
      <description>&lt;P&gt;Thank for the link to the details of max_threads Vipin, that information answered my question.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 14:44:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-get-the-current-number-of-MKL-threads/m-p/963899#M16079</guid>
      <dc:creator>Santiago_P_</dc:creator>
      <dc:date>2014-01-27T14:44:52Z</dc:date>
    </item>
  </channel>
</rss>

