<?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 OpenMP not using all processors in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022762#M19774</link>
    <description>&lt;P&gt;I am trying to use MKL libraries and OpenMP in a MSVS C++ application on Windows7. The application shows affinity for all 24 processors (2 nodes, 6 processors, HyperThreaded). omp_get_num_procs() also shows 24 processors. &amp;nbsp;When I run the program only 1 node&amp;nbsp;and 6 processors are accessed. This is confirmed &amp;nbsp;when I use "KMP_AFFINITY=verbose,none". It ouputs "OMP: Info #179: KMP_AFFINITY: 1 packages x 6 cores/pkg x 1 threads/core (6 total cores)".&amp;nbsp; I get no compiler or linker complaints.&lt;/P&gt;

&lt;P&gt;I am in the process of creating a simple program to see if it has the same problem and hopefully find something I missed in the settings.&amp;nbsp;Does anyone have any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks, Ted&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2015 13:56:14 GMT</pubDate>
    <dc:creator>Edward_Z_1</dc:creator>
    <dc:date>2015-02-25T13:56:14Z</dc:date>
    <item>
      <title>OpenMP not using all processors</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022762#M19774</link>
      <description>&lt;P&gt;I am trying to use MKL libraries and OpenMP in a MSVS C++ application on Windows7. The application shows affinity for all 24 processors (2 nodes, 6 processors, HyperThreaded). omp_get_num_procs() also shows 24 processors. &amp;nbsp;When I run the program only 1 node&amp;nbsp;and 6 processors are accessed. This is confirmed &amp;nbsp;when I use "KMP_AFFINITY=verbose,none". It ouputs "OMP: Info #179: KMP_AFFINITY: 1 packages x 6 cores/pkg x 1 threads/core (6 total cores)".&amp;nbsp; I get no compiler or linker complaints.&lt;/P&gt;

&lt;P&gt;I am in the process of creating a simple program to see if it has the same problem and hopefully find something I missed in the settings.&amp;nbsp;Does anyone have any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks, Ted&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 13:56:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022762#M19774</guid>
      <dc:creator>Edward_Z_1</dc:creator>
      <dc:date>2015-02-25T13:56:14Z</dc:date>
    </item>
    <item>
      <title>Comment by Brian Bliss (Intel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022763#M19775</link>
      <description>&lt;P&gt;&lt;BR /&gt;
	Comment by Brian Bliss (Intel): on OpenMP runtime forum&lt;/P&gt;

&lt;P&gt;Try &amp;nbsp;"KMP_AFFINITY=verbose,&lt;EM&gt;norespect&lt;/EM&gt;,none".&lt;/P&gt;

&lt;P&gt;If the initialization thread's affinity mask is set to be just the first node, then OpenMP RTL will consider that to be the portion of the machine that you are interested in running on.&amp;nbsp; If you say "norespect", then any proc that the RTL can detect will be included in the machine model.&lt;/P&gt;

&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;This did the trick.&amp;nbsp; I verified with and without HyperThreads enabled.&amp;nbsp;&amp;nbsp; Sorry I did not catch that from the documentation. This is my first venture into OpenMP.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 17:14:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022763#M19775</guid>
      <dc:creator>Edward_Z_1</dc:creator>
      <dc:date>2015-02-25T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Hi Edward Z, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022764#M19776</link>
      <description>&lt;P&gt;Hi Edward Z,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks for sharing. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 01:49:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OpenMP-not-using-all-processors/m-p/1022764#M19776</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-02-26T01:49:31Z</dc:date>
    </item>
  </channel>
</rss>

