<?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:Spawning fortran executable with mpi4py in python fails in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233050#M7477</link>
    <description>&lt;P&gt;Hi Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There isn't much to infer from the debug info you have provided except where the error is originated from.&lt;/P&gt;&lt;P&gt;I have tried to spawn multiple python executables but haven't faced any error.&lt;/P&gt;&lt;P&gt;Could you please provide us with a sample reproducer (python and Fortran codes)? along with the command line. That would help us a lot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Dec 2020 10:10:53 GMT</pubDate>
    <dc:creator>PrasanthD_intel</dc:creator>
    <dc:date>2020-12-01T10:10:53Z</dc:date>
    <item>
      <title>Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1232195#M7476</link>
      <description>&lt;P&gt;I have an mpi4py python code that spawns a Fortran executable.&lt;/P&gt;&lt;P&gt;The code prceeds happily enough, spawning and disconnecting from the Fortran child - however occasionally the code eventually fails with the followinng error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Abort(3188623) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init: Other MPI error, error stack:
MPIR_Init_thread(703)..........:
MPID_Init(958).................:
MPIDI_OFI_mpi_init_hook(1499)..:
MPID_Comm_connect(250).........:
MPIDI_OFI_mpi_comm_connect(655):
dynproc_exchange_map(534)......:
(unknown)(): Other MPI error&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'m unable to find out much about what this error means and why it happens, but it happens when attempting a spawn.&lt;/P&gt;&lt;P&gt;Has anyone seen this error before using mpi4py and know why it might happen?&lt;/P&gt;&lt;P&gt;I'm using the intel mpi and compilers (Parallel studio XE cluster: intel_2020/compilers_and_libraries_2020.0.166), python 3.6.9 and mpi4py 3.0.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 11:59:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1232195#M7476</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2020-11-27T11:59:07Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233050#M7477</link>
      <description>&lt;P&gt;Hi Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There isn't much to infer from the debug info you have provided except where the error is originated from.&lt;/P&gt;&lt;P&gt;I have tried to spawn multiple python executables but haven't faced any error.&lt;/P&gt;&lt;P&gt;Could you please provide us with a sample reproducer (python and Fortran codes)? along with the command line. That would help us a lot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Dec 2020 10:10:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233050#M7477</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-01T10:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233910#M7478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Prasanth,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a dummy code to reproduce the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compile &lt;STRONG&gt;&lt;EM&gt;test_executable.f90&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;mpif90 test_executable.f90 -o test_executable&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and run&lt;STRONG&gt;&lt;EM&gt; run_test.py&lt;/EM&gt; &lt;/STRONG&gt;in the same folder as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;mpirun -np 1 python3 run_test.py&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Conn&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:06:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233910#M7478</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2020-12-03T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233952#M7479</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Prasanth,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is a simpler version without any data being passed back and forth between the child and parent that produces the error:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;hello.f90:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;program hello&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;implicit none&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;include 'mpif.h'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;integer::rank, size, ierr&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;integer::mpi_comm_parent&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;call MPI_INIT(ierr)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierr)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;call mpi_COMM_get_parent(mpi_comm_parent,ierr)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;print*,"hello from spawned child",rank&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IF (mpi_comm_parent .ne. MPI_COMM_NULL) THEN&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CALL MPI_BARRIER(mpi_comm_parent,ierr)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CALL MPI_COMM_DISCONNECT(mpi_comm_parent,ierr)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end if&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;call MPI_FINALIZE(ierr)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the python runner:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;#! /usr/bin/env python3&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;from mpi4py import MPI&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;import sys&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;import numpy as np&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;my_comm = MPI.COMM_WORLD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;my_rank = MPI.COMM_WORLD.Get_rank()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;size = my_comm.Get_size()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if __name__ == "__main__":&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;executable = "./hello"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;for i in range(2000):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; print("Spawning",i)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; commspawn = MPI.COMM_SELF.Spawn(executable, args="", maxprocs=4)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; commspawn.Barrier()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; commspawn.Disconnect()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; sys.stdout.flush() &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;MPI.COMM_WORLD.Barrier()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MPI.Finalize()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error doesn't seem to happen systematically at any particular step either. Error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Abort(3188623) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init: Other MPI error, error stack:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MPIR_Init_thread(703)..........:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MPID_Init(958).................:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MPIDI_OFI_mpi_init_hook(1499)..:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MPID_Comm_connect(250).........:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MPIDI_OFI_mpi_comm_connect(655):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dynproc_exchange_map(534)......:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(unknown)(): Other MPI error&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[mpiexec@chsv-beryl] HYD_sock_write (../../../../../src/pm/i_hydra/libhydra/sock/hydra_sock_intel.c:362): write error (Bad file descriptor)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[mpiexec@chsv-beryl] cmd_bcast_root (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:171): error sending cmd 15 to proxy&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[mpiexec@chsv-beryl] send_abort_rank_downstream (../../../../../src/pm/i_hydra/mpiexec/intel/i_mpiexec.c:551): unable to send response downstream&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[mpiexec@chsv-beryl] control_cb (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:1601): unable to send abort rank to downstreams&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[mpiexec@chsv-beryl] HYDI_dmx_poll_wait_for_event (../../../../../src/pm/i_hydra/libhydra/demux/hydra_demux_poll.c:80): callback returned error status&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[mpiexec@chsv-beryl] main (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:2007): error waiting for event&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:30:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233952#M7479</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2020-12-03T16:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233955#M7480</link>
      <description>&lt;P&gt;Sorry terrible formatting there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;   program hello
    implicit none
   include 'mpif.h'

   integer::rank, size, ierr
   integer::mpi_comm_parent

       call MPI_INIT(ierr)
       call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierr)
       call mpi_COMM_get_parent(mpi_comm_parent,ierr)
        print*,"hello from spawned child",rank
        IF (mpi_comm_parent .ne. MPI_COMM_NULL) THEN
            CALL MPI_BARRIER(mpi_comm_parent,ierr)
            CALL MPI_COMM_DISCONNECT(mpi_comm_parent,ierr)
        end if

   call MPI_FINALIZE(ierr)
   end
&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;#! /usr/bin/env python3

from mpi4py import MPI
import sys
import numpy as np

my_comm = MPI.COMM_WORLD
my_rank = MPI.COMM_WORLD.Get_rank()
size = my_comm.Get_size()

if __name__ == "__main__":


    executable = "./hello"

    for i in range(2000):
        print("Spawning",i)
        commspawn = MPI.COMM_SELF.Spawn(executable, args="", maxprocs=4)#, info=mpi_info)
        commspawn.Barrier()
        commspawn.Disconnect()
        sys.stdout.flush()

    MPI.COMM_WORLD.Barrier()
    MPI.Finalize()
~                  &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:36:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1233955#M7480</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2020-12-03T16:36:27Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1235118#M7481</link>
      <description>&lt;P&gt;Hi Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I think this error is due to the process limitations of the user in Linux.&lt;/P&gt;&lt;P&gt;I have reproduced a similar error and when i reduce the total number of spawned processes to 330 i am able to spawn without any errors in a single node.&lt;/P&gt;&lt;P&gt;Could you please check at what number you were getting this error? also, the output of ulimit -a and MPI version you were using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2020 09:55:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1235118#M7481</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-08T09:55:47Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1237049#M7482</link>
      <description>&lt;P&gt;Hi Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Had you checked with a lower number of spawned processes?&lt;/P&gt;&lt;P&gt;Let us know the results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Dec 2020 12:01:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1237049#M7482</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-14T12:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1237065#M7483</link>
      <description>&lt;P&gt;Hi Prasanth,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes - it is possible to spawn several instances of the executable. But it eventually results in an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to remove the limit?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output from ulimit is:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 513221
max locked memory       (kbytes, -l) 65536
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 65536
cpu time               (seconds, -t) unlimited
max user processes              (-u) 513221
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I am using Intel MPI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Intel(R) MPI Library for Linux* OS, Version 2019 Update 6 Build 20191024 (id: 082ae5608)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Conn&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:34:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1237065#M7483</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2020-12-14T13:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1237066#M7484</link>
      <description>&lt;P&gt;Hi Again,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its also worth noting that there is a barrier preventing multiple instances of the exectuable spawning at the same time - so there shouldnt be and excessive number of&amp;nbsp; processes running at once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Conn&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:36:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1237066#M7484</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2020-12-14T13:36:20Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1238654#M7485</link>
      <description>&lt;P&gt;Hi Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As you have said there shouldn't be multiple processes running at the same time and it is the case. As there is no dependency between threads, they will terminate irrespective of others.&lt;/P&gt;&lt;P&gt;In the previous replies, I mentioned this might be due to too many open processes but as I checked that is not the case.&lt;/P&gt;&lt;P&gt;I am now transferring this case to the concerned team who can debug and answer better. We will get back to you soon. Thanks for your patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Dec 2020 08:38:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1238654#M7485</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2020-12-18T08:38:08Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1286443#M8348</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Hi O_Rourke__Conn,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Thanks for sharing a reproducer. I experienced an error but not exactly the same one that you see at 1008th iteration (this number changes from run to run but remains in the neighborhood of 1000). Here's mine, with Intel Fortran compiler 2021.2, Intel MPI Library 2021.2 and Intel Distribution for Python 3.7.9,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[mpiexec@s001-n061] enqueue_control_fd (../../../../../src/pm/i_hydra/libhydra/bstrap/src/intel/i_hydra_bstrap.c:72): assert (!closed) failed&lt;/P&gt;&lt;P&gt;[mpiexec@s001-n061] local_launch (../../../../../src/pm/i_hydra/libhydra/bstrap/src/intel/i_hydra_bstrap.c:546): error enqueuing control fd&lt;/P&gt;&lt;P&gt;[mpiexec@s001-n061] single_launch (../../../../../src/pm/i_hydra/libhydra/bstrap/src/intel/i_hydra_bstrap.c:635): local launch error&lt;/P&gt;&lt;P&gt;[mpiexec@s001-n061] launch_bstrap_proxies (../../../../../src/pm/i_hydra/libhydra/bstrap/src/intel/i_hydra_bstrap.c:825): single launch error&lt;/P&gt;&lt;P&gt;[mpiexec@s001-n061] HYD_bstrap_setup (../../../../../src/pm/i_hydra/libhydra/bstrap/src/intel/i_hydra_bstrap.c:1019): unable to launch bstrap proxy&lt;/P&gt;&lt;P&gt;[mpiexec@s001-n061] do_spawn (../../../../../src/pm/i_hydra/mpiexec/mpiexec.c:1138): error setting up the bootstrap proxies&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;  &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;It turns out that every spawn leaves behind a hydra_pmi_proxy running on the machine. Eventually, a point comes when the number of PIDs on the machine exceeds the limit for the maximum allowed PIDs for a user, and when this happens new bootstrap proxies can no longer be launched resulting in the above error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;On my machine,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ ulimit -a | grep "max user processes"&lt;/P&gt;&lt;P&gt;max user processes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(-u) 1024&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;And when the code runs the 1008th iteration of the loop, the number of PIDs approach 1024 and the above error comes up. I track the number of running PIDs using the following command,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$ watch -n 0.5 "ps -a | wc -l"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;The error that you originally reported might also be related to the max user processes limit. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Amar   &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:10:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1286443#M8348</guid>
      <dc:creator>DrAmarpal_K_Intel</dc:creator>
      <dc:date>2021-06-02T09:10:23Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1290992#M8460</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Hi O_Rourke__Conn,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Please let me know if you had further questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Amar &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2021 07:34:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1290992#M8460</guid>
      <dc:creator>DrAmarpal_K_Intel</dc:creator>
      <dc:date>2021-06-18T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1291015#M8463</link>
      <description>&lt;P&gt;Hi Amar,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I expect you are right - I haven't looked at this in a while, as I refactored the code I was working on, but I do recall seeing hyrda_mpi_proxies lying around.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For future reference is there a way to kill them off?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Conn&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 08:38:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1291015#M8463</guid>
      <dc:creator>O_Rourke__Conn</dc:creator>
      <dc:date>2021-06-18T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1293189#M8494</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Hi O_Rourke__Conn,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;I am checking why the runtime doesn't already do this. Allow me some time to get back to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Amar &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2021 07:44:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1293189#M8494</guid>
      <dc:creator>DrAmarpal_K_Intel</dc:creator>
      <dc:date>2021-06-25T07:44:38Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1295403#M8530</link>
      <description>&lt;P&gt;Hi O_Rourke__Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try launching your application with the following environment variables and report your findings? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;I_MPI_SPAWN_EXPERIMENTAL=1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;I_MPI_SPAWN=1&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2021 11:27:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1295403#M8530</guid>
      <dc:creator>DrAmarpal_K_Intel</dc:creator>
      <dc:date>2021-07-02T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1300535#M8627</link>
      <description>&lt;P&gt;Hi O_Rourke__Conn,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check if you had any updates?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jul 2021 07:47:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1300535#M8627</guid>
      <dc:creator>DrAmarpal_K_Intel</dc:creator>
      <dc:date>2021-07-22T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re:Spawning fortran executable with mpi4py in python fails</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1302120#M8639</link>
      <description>&lt;P&gt;Closing this thread due to inactivity. If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2021 07:25:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Spawning-fortran-executable-with-mpi4py-in-python-fails/m-p/1302120#M8639</guid>
      <dc:creator>DrAmarpal_K_Intel</dc:creator>
      <dc:date>2021-07-29T07:25:37Z</dc:date>
    </item>
  </channel>
</rss>

