<?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 affinity in openmp?? in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793646#M414</link>
    <description>SET KMP_AFFINITY=compact&lt;BR /&gt;would cause your Intel OpenMP application to attempt to pair up threads [0,1],[2,3],.... on shared cache. This would usually be a good strategy, provided that it is the only task running.&lt;BR /&gt;If you have a HyperThreading enabled, as on quad core I7, and wish to use 1 thread per core, try&lt;BR /&gt;SET KMP_AFFINITY=compact,1&lt;BR /&gt;SET OMP_NUM_THREADS=4&lt;BR /&gt;&lt;BR /&gt;The ,1 directs the affinity to use alternate logical processors.&lt;BR /&gt;&lt;BR /&gt;The verbose option gives you all the information about topology discovery and the assignments you requested, including whether it is set to choose any logical processor in a specified group.&lt;BR /&gt;You can specifiy a full mapping with the proclist option, e.g.&lt;BR /&gt;SET KMP_AFFINITY="proclist=[0,2],explicit,verbose"&lt;BR /&gt;SET OMP_NUM_THREADS=2&lt;BR /&gt;for 1 job, and proclist=[1,3] for another, if you wanted to run 2 2-thread jobs on a Q6600 with minimum interference. Note that Q6600 BIOS numbers cores in a checkerboard order; you can see this with verbose.&lt;BR /&gt;&lt;BR /&gt;kmp_set_affinity() is available as a call to libiomp from the application. It takes similar strings to the environment variable strings. Evidently, you would include verbose at first to check it. It would not affect a current parallel region.&lt;BR /&gt;&lt;BR /&gt;The documents on this subject which come with the compiler are important reading.</description>
    <pubDate>Thu, 04 Nov 2010 14:09:53 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2010-11-04T14:09:53Z</dc:date>
    <item>
      <title>affinity in openmp??</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793645#M413</link>
      <description>i am a newbie...&lt;BR /&gt;&lt;BR /&gt;can anyone explain me in detail how to set kmp_affinity etc... i am not clear about it..&lt;BR /&gt;&lt;BR /&gt;i just know that it is used to set affinity to threads - cores (processors).. but how to do it?? i dont know..!&lt;BR /&gt;&lt;BR /&gt;i am having a desktop with windows XP SP3 installed on it, also visual studio 2008 and along with it openmp...&lt;BR /&gt;&lt;BR /&gt;also is it possible to set affinity for threads through program at runtime..?? if so how??</description>
      <pubDate>Thu, 04 Nov 2010 13:43:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793645#M413</guid>
      <dc:creator>rrr1989</dc:creator>
      <dc:date>2010-11-04T13:43:07Z</dc:date>
    </item>
    <item>
      <title>affinity in openmp??</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793646#M414</link>
      <description>SET KMP_AFFINITY=compact&lt;BR /&gt;would cause your Intel OpenMP application to attempt to pair up threads [0,1],[2,3],.... on shared cache. This would usually be a good strategy, provided that it is the only task running.&lt;BR /&gt;If you have a HyperThreading enabled, as on quad core I7, and wish to use 1 thread per core, try&lt;BR /&gt;SET KMP_AFFINITY=compact,1&lt;BR /&gt;SET OMP_NUM_THREADS=4&lt;BR /&gt;&lt;BR /&gt;The ,1 directs the affinity to use alternate logical processors.&lt;BR /&gt;&lt;BR /&gt;The verbose option gives you all the information about topology discovery and the assignments you requested, including whether it is set to choose any logical processor in a specified group.&lt;BR /&gt;You can specifiy a full mapping with the proclist option, e.g.&lt;BR /&gt;SET KMP_AFFINITY="proclist=[0,2],explicit,verbose"&lt;BR /&gt;SET OMP_NUM_THREADS=2&lt;BR /&gt;for 1 job, and proclist=[1,3] for another, if you wanted to run 2 2-thread jobs on a Q6600 with minimum interference. Note that Q6600 BIOS numbers cores in a checkerboard order; you can see this with verbose.&lt;BR /&gt;&lt;BR /&gt;kmp_set_affinity() is available as a call to libiomp from the application. It takes similar strings to the environment variable strings. Evidently, you would include verbose at first to check it. It would not affect a current parallel region.&lt;BR /&gt;&lt;BR /&gt;The documents on this subject which come with the compiler are important reading.</description>
      <pubDate>Thu, 04 Nov 2010 14:09:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793646#M414</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-11-04T14:09:53Z</dc:date>
    </item>
    <item>
      <title>affinity in openmp??</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793647#M415</link>
      <description>hi thanks for the help...&lt;BR /&gt;&lt;BR /&gt;but it says :&lt;BR /&gt;error C2065: 'KMP_AFFINITY' : undeclared identifier&lt;BR /&gt;&lt;BR /&gt;is there any prerequisite required before writing this statement in my program?? i mean any environment variable to be set explicitly?? if so can you please elaborate it.. please.. as i said i am a newbie so please explain in detail...</description>
      <pubDate>Thu, 04 Nov 2010 14:50:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793647#M415</guid>
      <dc:creator>rrr1989</dc:creator>
      <dc:date>2010-11-04T14:50:35Z</dc:date>
    </item>
    <item>
      <title>affinity in openmp??</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793648#M416</link>
      <description>&lt;DIV&gt;- Use Intel compiler&lt;/DIV&gt;&lt;DIV&gt;- specify the -openmp ( in the case of Linux and Mac OS) or /Qopenmp ( for Windows) compiler option.&lt;/DIV&gt;&lt;DIV&gt;or&lt;/DIV&gt;&lt;DIV&gt;- expliciltly add IntelOpenMP* run-time library to your linking path ...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 10.8333px; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;perform on non-Intel microprocessors. The&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Nov 2010 17:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793648#M416</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-11-04T17:43:14Z</dc:date>
    </item>
    <item>
      <title>affinity in openmp??</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793649#M417</link>
      <description>KMP_AFFINITY is an environment variable. I set it in bash, but I assumed you would use SET.&lt;BR /&gt;kmp_set_affinity should be resolved in libiomp, if you make the function call. Try the environment variable first.</description>
      <pubDate>Thu, 04 Nov 2010 17:45:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/affinity-in-openmp/m-p/793649#M417</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-11-04T17:45:34Z</dc:date>
    </item>
  </channel>
</rss>

