<?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 Thread Affinity in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Thread-Affinity/m-p/1637815#M4145</link>
    <description>&lt;P&gt;I have 2 questions when reading&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-2/thread-affinity-interface.html," target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-2/thread-affinity-interface.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1 It says&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Binding OpenMP threads to particular packages and cores will often result in a performance gain on systems with Intel processors with Intel® Hyper-Threading Technology (Intel® HT Technology) enabled; however, it is usually not beneficial to bind each OpenMP thread to a particular thread context on a specific core.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is binding beneficial or not?&lt;/P&gt;&lt;P&gt;2 &lt;SPAN&gt;Specifying&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;KMP_AFFINITY=verbose,granularity=core,compact, it shows&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;KMP_AFFINITY: OS proc 0 maps to socket 0 core 0 thread 0 
KMP_AFFINITY: OS proc 4 maps to socket 0 core 0 thread 1 
KMP_AFFINITY: OS proc 2 maps to socket 0 core 1 thread 0 
KMP_AFFINITY: OS proc 6 maps to socket 0 core 1 thread 1 
KMP_AFFINITY: OS proc 1 maps to socket 3 core 0 thread 0 
KMP_AFFINITY: OS proc 5 maps to socket 3 core 0 thread 1 
KMP_AFFINITY: OS proc 3 maps to socket 3 core 1 thread 0 
KMP_AFFINITY: OS proc 7 maps to socket 3 core 1 thread 1 &lt;/PRE&gt;&lt;P&gt;Should proc 1 map to&amp;nbsp;&amp;nbsp;socket 0 core 1 thread 0?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 13:08:35 GMT</pubDate>
    <dc:creator>toddwz</dc:creator>
    <dc:date>2024-10-17T13:08:35Z</dc:date>
    <item>
      <title>Thread Affinity</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Thread-Affinity/m-p/1637815#M4145</link>
      <description>&lt;P&gt;I have 2 questions when reading&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-2/thread-affinity-interface.html," target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-2/thread-affinity-interface.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1 It says&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Binding OpenMP threads to particular packages and cores will often result in a performance gain on systems with Intel processors with Intel® Hyper-Threading Technology (Intel® HT Technology) enabled; however, it is usually not beneficial to bind each OpenMP thread to a particular thread context on a specific core.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is binding beneficial or not?&lt;/P&gt;&lt;P&gt;2 &lt;SPAN&gt;Specifying&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;KMP_AFFINITY=verbose,granularity=core,compact, it shows&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;KMP_AFFINITY: OS proc 0 maps to socket 0 core 0 thread 0 
KMP_AFFINITY: OS proc 4 maps to socket 0 core 0 thread 1 
KMP_AFFINITY: OS proc 2 maps to socket 0 core 1 thread 0 
KMP_AFFINITY: OS proc 6 maps to socket 0 core 1 thread 1 
KMP_AFFINITY: OS proc 1 maps to socket 3 core 0 thread 0 
KMP_AFFINITY: OS proc 5 maps to socket 3 core 0 thread 1 
KMP_AFFINITY: OS proc 3 maps to socket 3 core 1 thread 0 
KMP_AFFINITY: OS proc 7 maps to socket 3 core 1 thread 1 &lt;/PRE&gt;&lt;P&gt;Should proc 1 map to&amp;nbsp;&amp;nbsp;socket 0 core 1 thread 0?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 13:08:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Thread-Affinity/m-p/1637815#M4145</guid>
      <dc:creator>toddwz</dc:creator>
      <dc:date>2024-10-17T13:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Thread Affinity</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Thread-Affinity/m-p/1638100#M4147</link>
      <description>&lt;P&gt;Escalated your issue for further investigation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 17:29:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Thread-Affinity/m-p/1638100#M4147</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-10-18T17:29:46Z</dc:date>
    </item>
  </channel>
</rss>

