<?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 Re: spawn_multiple with mpi4py on Windows in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1200333#M1506</link>
    <description>&lt;P&gt;OK I solved it. Turning on debug information by setting environment variable I_MPI_HYDRA_DEBUG=on showed that there's another parameter in the MPI Info object called "path", which is set by default to the location of the python distribution. The wdir directory is assumed to be relative to this path. Setting it to the appropriate directory and passing it to Spawn_multiple() solved it.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;mpiInfo = MPI.Info.Create()
mpiInfo.Set('path','path/to/set')
mpiInfo.Set('wdir','working/directory')
sub_comm = MPI.COMM_SELF.Spawn_multiple(["app.exe"]*nProcess,info=[mpiInfo]*nProcess, args = args)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2020 13:06:44 GMT</pubDate>
    <dc:creator>maartenb</dc:creator>
    <dc:date>2020-08-14T13:06:44Z</dc:date>
    <item>
      <title>spawn_multiple with mpi4py on Windows</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1199990#M1505</link>
      <description>&lt;P&gt;I'm trying to spawn multiple processes from python using mpi4py.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;sub_comm = MPI.COMM_SELF.Spawn_multiple(["app.exe"]*nProcess,info=mpiInfo, args = args)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It fails because the root of my intel python distribution (C:\intelpython3\) gets prepended to the command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;[proxy:1:0@xxxx] HYD_spawn (..\windows\src\hydra_spawn.c:231): unable to run process c:\intelpython3/app.exe (error code 2)
[proxy:1:0@xxxx] launch_processes (proxy.c:603): error creating process (error code 2). The system cannot find the file specified.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried passing an info object with the "wdir" set to the location of "app.exe", but it didn't help. How can I prevent this?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Maarten&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:07:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1199990#M1505</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2020-08-13T09:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: spawn_multiple with mpi4py on Windows</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1200333#M1506</link>
      <description>&lt;P&gt;OK I solved it. Turning on debug information by setting environment variable I_MPI_HYDRA_DEBUG=on showed that there's another parameter in the MPI Info object called "path", which is set by default to the location of the python distribution. The wdir directory is assumed to be relative to this path. Setting it to the appropriate directory and passing it to Spawn_multiple() solved it.&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;mpiInfo = MPI.Info.Create()
mpiInfo.Set('path','path/to/set')
mpiInfo.Set('wdir','working/directory')
sub_comm = MPI.COMM_SELF.Spawn_multiple(["app.exe"]*nProcess,info=[mpiInfo]*nProcess, args = args)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:06:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1200333#M1506</guid>
      <dc:creator>maartenb</dc:creator>
      <dc:date>2020-08-14T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: spawn_multiple with mpi4py on Windows</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1200347#M1507</link>
      <description>&lt;P&gt;Hi Maarten,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad to know that your issue is resolved and thank you for sharing the solution as it will be beneficial for the community.&lt;SPAN&gt;We will no longer monitor this thread and please feel free to raise a new thread if you have any further queries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Raeesa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 13:57:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/spawn-multiple-with-mpi4py-on-Windows/m-p/1200347#M1507</guid>
      <dc:creator>RaeesaM_Intel</dc:creator>
      <dc:date>2020-08-14T13:57:40Z</dc:date>
    </item>
  </channel>
</rss>

