<?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 nested MPI application  in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068258#M4624</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have a MPI application, say p1.exe, compiled with command,&lt;/P&gt;

&lt;P&gt;mpiifort p1.f90 /Od /Qopenmp /link&lt;/P&gt;

&lt;P&gt;The program receives a parameter from command line in runtime, p1.exe SRN:n. When n=1, the MPI is initiated by&lt;/P&gt;

&lt;P&gt;CALL MPI_INIT(I)&lt;/P&gt;

&lt;P&gt;CALL MPI_COMM_RANK(MPI_COMM_WORLD, ThreadID, I)&lt;/P&gt;

&lt;P&gt;CALL MPI_COMM_SIZE(MPI_COMM_WORLD, NumThreads, I)&lt;/P&gt;

&lt;P&gt;Otherwise, &amp;nbsp;MPI is NOT initiated and NOT used.&lt;/P&gt;

&lt;P&gt;Now I have a 2nd MPI application which always initiates and uses MPI. The line of code in p2.f90 that calls p1.exe is&lt;/P&gt;

&lt;P&gt;call system("p1.exe SRN:0")&lt;/P&gt;

&lt;P&gt;However, this does not work. When I run p2.exe, I got the error messages&lt;/P&gt;

&lt;P&gt;PMI_ConnectToHost failed: unable to post a connect to ...&lt;/P&gt;

&lt;P&gt;MPIDU_Sock_post_connect(1200): unable to connect to...&lt;/P&gt;

&lt;P&gt;It seems to me that MPI is still invoked in P1.exe and therefore there is a clash of MPI between P1 and P2. This is weird as no MPI is initiated at runtime when n is set to 0.&lt;/P&gt;

&lt;P&gt;When P1.f90 is compiled without MPI (e.g. ifort p1.f90), then it works.&lt;/P&gt;

&lt;P&gt;Any help?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2016 12:34:27 GMT</pubDate>
    <dc:creator>jinliang_w_</dc:creator>
    <dc:date>2016-03-31T12:34:27Z</dc:date>
    <item>
      <title>nested MPI application</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068258#M4624</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have a MPI application, say p1.exe, compiled with command,&lt;/P&gt;

&lt;P&gt;mpiifort p1.f90 /Od /Qopenmp /link&lt;/P&gt;

&lt;P&gt;The program receives a parameter from command line in runtime, p1.exe SRN:n. When n=1, the MPI is initiated by&lt;/P&gt;

&lt;P&gt;CALL MPI_INIT(I)&lt;/P&gt;

&lt;P&gt;CALL MPI_COMM_RANK(MPI_COMM_WORLD, ThreadID, I)&lt;/P&gt;

&lt;P&gt;CALL MPI_COMM_SIZE(MPI_COMM_WORLD, NumThreads, I)&lt;/P&gt;

&lt;P&gt;Otherwise, &amp;nbsp;MPI is NOT initiated and NOT used.&lt;/P&gt;

&lt;P&gt;Now I have a 2nd MPI application which always initiates and uses MPI. The line of code in p2.f90 that calls p1.exe is&lt;/P&gt;

&lt;P&gt;call system("p1.exe SRN:0")&lt;/P&gt;

&lt;P&gt;However, this does not work. When I run p2.exe, I got the error messages&lt;/P&gt;

&lt;P&gt;PMI_ConnectToHost failed: unable to post a connect to ...&lt;/P&gt;

&lt;P&gt;MPIDU_Sock_post_connect(1200): unable to connect to...&lt;/P&gt;

&lt;P&gt;It seems to me that MPI is still invoked in P1.exe and therefore there is a clash of MPI between P1 and P2. This is weird as no MPI is initiated at runtime when n is set to 0.&lt;/P&gt;

&lt;P&gt;When P1.f90 is compiled without MPI (e.g. ifort p1.f90), then it works.&lt;/P&gt;

&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 12:34:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068258#M4624</guid>
      <dc:creator>jinliang_w_</dc:creator>
      <dc:date>2016-03-31T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068259#M4625</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am not sure if this scenario is covered by the MPI standard, therefore I will check this and get back to you.&lt;/P&gt;

&lt;P&gt;In the meantime you might want to try linking the p1 application statically and see if you observe any different behaviour.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 14:30:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068259#M4625</guid>
      <dc:creator>Michael_Intel</dc:creator>
      <dc:date>2016-04-01T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Thank you for the looking</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068260#M4626</link>
      <description>&lt;P&gt;Thank you for the looking into this, Michael!&lt;/P&gt;

&lt;P&gt;I have tried linking the P1 application statically, it still does not work (with the same error message).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 15:19:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068260#M4626</guid>
      <dc:creator>jinliang_w_</dc:creator>
      <dc:date>2016-04-01T15:19:25Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068261#M4627</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;It seems that the launch of another application via system commands are not supported, since the child- program won't see the MPI environment of the parent application. If you need to implement such functionality, please look into the dynamic process support of the MPI standard.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 15:03:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068261#M4627</guid>
      <dc:creator>Michael_Intel</dc:creator>
      <dc:date>2016-04-05T15:03:12Z</dc:date>
    </item>
    <item>
      <title>Thank you, Michael! That</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068262#M4628</link>
      <description>&lt;P&gt;Thank you, Michael! That means I have to rewrite the code.&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 16:35:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068262#M4628</guid>
      <dc:creator>jinliang_w_</dc:creator>
      <dc:date>2016-04-06T16:35:51Z</dc:date>
    </item>
    <item>
      <title>Unfortunately - yes</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068263#M4629</link>
      <description>&lt;P&gt;Unfortunately - yes&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 12:41:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/nested-MPI-application/m-p/1068263#M4629</guid>
      <dc:creator>Michael_Intel</dc:creator>
      <dc:date>2016-04-07T12:41:24Z</dc:date>
    </item>
  </channel>
</rss>

