I never argue the standard with George, so I'll take his word for it.
I tried your program and it worked just fine for me without the sleep. However,
I still think there is something wrong in it. I tried adjusting the number of
processes and that caused it to hang, for one. Afraid I don't have
Based on the MPI standard (MPI 3.0 section 10.5.4 page 399) there is no
need to disconnect the child processes from the parent in order to cleanly
finalize. From this perspective, the original example is correct, but
sub-optimal as the parent processes calling MPI_Finalize might block until
all con
You need to disconnect the parent/child from each other prior to finalizing -
see the attached example
simple_spawn.c
Description: Binary data
On Aug 31, 2014, at 9:44 PM, Roy wrote:
> Hi all,
>
> I'm using MPI_Comm_spawn to start new child process.
> I found that if the parent process exe
Hi all,
I'm using MPI_Comm_spawn to start new child process.
I found that if the parent process execute MPI_Finalize before the child
process, the child process core dump on MPI_Finalize.
I couldn't find the correct way to have a clean shutdown of all processes
( parent and child ).
What that I f