<?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 cpuinfo output from system call different in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023028#M4073</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using Intel MPI 5.0 and am making a system call inside my fortran program and it returns different values depending on the env. variable I_MPI_PIN_DOMAIN. Why is that? How do I make it give consistent output?&lt;/P&gt;&lt;P&gt;Sample Fortran (Intel Fortran 13.1) program that can reproduce this:&lt;/P&gt;
&lt;PRE class="brush:fortran;"&gt;        Program tester

        call system("cpuinfo|grep 'Packages(sockets)'|
     &amp;amp;                          tr -d ' '|cut -d ':' -f 2")

        stop
        end&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -genv I_MPI_PIN_DOMAIN node -np 1 ./a.out&lt;BR /&gt;2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -genv I_MPI_PIN_DOMAIN socket -np 1 ./a.out&lt;BR /&gt;1&lt;/P&gt;
&lt;P&gt;The command line output of the same in a shell is 2, so why is "socket" giving different output?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2014 23:15:40 GMT</pubDate>
    <dc:creator>AGG1</dc:creator>
    <dc:date>2014-10-13T23:15:40Z</dc:date>
    <item>
      <title>cpuinfo output from system call different</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023028#M4073</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using Intel MPI 5.0 and am making a system call inside my fortran program and it returns different values depending on the env. variable I_MPI_PIN_DOMAIN. Why is that? How do I make it give consistent output?&lt;/P&gt;&lt;P&gt;Sample Fortran (Intel Fortran 13.1) program that can reproduce this:&lt;/P&gt;
&lt;PRE class="brush:fortran;"&gt;        Program tester

        call system("cpuinfo|grep 'Packages(sockets)'|
     &amp;amp;                          tr -d ' '|cut -d ':' -f 2")

        stop
        end&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -genv I_MPI_PIN_DOMAIN node -np 1 ./a.out&lt;BR /&gt;2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -genv I_MPI_PIN_DOMAIN socket -np 1 ./a.out&lt;BR /&gt;1&lt;/P&gt;
&lt;P&gt;The command line output of the same in a shell is 2, so why is "socket" giving different output?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 23:15:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023028#M4073</guid>
      <dc:creator>AGG1</dc:creator>
      <dc:date>2014-10-13T23:15:40Z</dc:date>
    </item>
    <item>
      <title>I'm not certain why the</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023029#M4074</link>
      <description>&lt;P&gt;I'm not certain why the output is different, I'll have to check with our developers.&amp;nbsp; Generally, cpuinfo should not be run inside a job, as it is intended to provide core layout for a job.&amp;nbsp; So it may be expected that the output is inconsistent in this scenario.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2014 19:21:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023029#M4074</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-10-31T19:21:17Z</dc:date>
    </item>
    <item>
      <title>Thanks. For now I'm not using</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023030#M4075</link>
      <description>&lt;P&gt;Thanks. For now I'm not using the cpuinfo command from inside my code.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2014 15:41:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/cpuinfo-output-from-system-call-different/m-p/1023030#M4075</guid>
      <dc:creator>AGG1</dc:creator>
      <dc:date>2014-11-04T15:41:29Z</dc:date>
    </item>
  </channel>
</rss>

