<?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 -par-affinity option doesn't work in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/par-affinity-option-doesn-t-work/m-p/822557#M1273</link>
    <description>I think I recall seeing -par-affinity="verbose,scatter=1" work. I haven't used it much, as it would be better for multiple platform as well as experimental usage to be able to over-ride by setting KMP_AFFINITY, and recent versions of the library seem not so dependent on KMP_AFFINITY (in the easy cases).</description>
    <pubDate>Mon, 17 Jan 2011 17:39:19 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2011-01-17T17:39:19Z</dc:date>
    <item>
      <title>-par-affinity option doesn't work</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/par-affinity-option-doesn-t-work/m-p/822556#M1272</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Compiling this code:&lt;BR /&gt;&lt;PRE&gt;[bash]#include &lt;IOSTREAM&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;#include &lt;OMP.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[]){&lt;BR /&gt;int nproc = omp_get_num_procs();&lt;BR /&gt;cout&amp;lt;&lt;NPROC&gt;&amp;lt;&lt;ENDL&gt;&lt;/ENDL&gt;}&lt;BR /&gt;[/bash]&lt;/NPROC&gt;&lt;/OMP.H&gt;&lt;/IOSTREAM&gt;&lt;/PRE&gt; with:&lt;BR /&gt;&lt;PRE&gt;[bash]icpc -openmp -par-affinity=verbose,scatter test.c[/bash]&lt;/PRE&gt; then running a.out yields a single line of output ("2", this is a single CPU, dual-core). So the "verbose" modifier isn't taken into account. On the contrary, compiling with:&lt;BR /&gt;&lt;PRE&gt;[bash]icpc -openmp test.c &lt;BR /&gt;[/bash]&lt;/PRE&gt; and setting environment variable KMP_AFFINITY to "verbose,scatter" yields the expected verbose output:&lt;BR /&gt;&lt;PRE&gt;[bash]OMP: Info #204: KMP_AFFINITY: decoding cpuid leaf 11 APIC ids.&lt;BR /&gt;OMP: Info #205: KMP_AFFINITY: cpuid leaf 11 not supported - decoding cpuid leaf 4 APIC ids.&lt;BR /&gt;OMP: Info #149: KMP_AFFINITY: Affinity capable, using global cpuid info&lt;BR /&gt;OMP: Info #154: KMP_AFFINITY: Initial OS proc set respected: {0,1}&lt;BR /&gt;OMP: Info #156: KMP_AFFINITY: 2 available OS procs&lt;BR /&gt;OMP: Info #157: KMP_AFFINITY: Uniform topology&lt;BR /&gt;OMP: Info #159: KMP_AFFINITY: 1 packages x 2 cores/pkg x 1 threads/core (2 total cores)&lt;BR /&gt;OMP: Info #206: KMP_AFFINITY: OS proc to physical thread map:&lt;BR /&gt;OMP: Info #171: KMP_AFFINITY: OS proc 0 maps to package 0 core 0 &lt;BR /&gt;OMP: Info #171: KMP_AFFINITY: OS proc 1 maps to package 0 core 1 &lt;BR /&gt;OMP: Info #147: KMP_AFFINITY: Internal thread 0 bound to OS proc set {0}&lt;BR /&gt;2&lt;BR /&gt;[/bash]&lt;/PRE&gt;&lt;BR /&gt;icpc version 12.0.0&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2011 15:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/par-affinity-option-doesn-t-work/m-p/822556#M1272</guid>
      <dc:creator>llevrel</dc:creator>
      <dc:date>2011-01-17T15:04:17Z</dc:date>
    </item>
    <item>
      <title>-par-affinity option doesn't work</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/par-affinity-option-doesn-t-work/m-p/822557#M1273</link>
      <description>I think I recall seeing -par-affinity="verbose,scatter=1" work. I haven't used it much, as it would be better for multiple platform as well as experimental usage to be able to over-ride by setting KMP_AFFINITY, and recent versions of the library seem not so dependent on KMP_AFFINITY (in the easy cases).</description>
      <pubDate>Mon, 17 Jan 2011 17:39:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/par-affinity-option-doesn-t-work/m-p/822557#M1273</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-01-17T17:39:19Z</dc:date>
    </item>
  </channel>
</rss>

