[MPICH] Dynamic process
Rajeev Thakur
thakur at mcs.anl.gov
Mon Feb 11 09:54:53 CST 2008
You need to call MPI_Comm_disconnect to disconnect the spawned processes
from the parents. The spawnees can then independently call MPI_Finalize and
disappear. However, if you want to delete just one process from the spawned
group it is more difficult. You would probably need to spawn them one by
one, connect them all, disconnect them, and then let one of them go.
Rajeev
> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Mesri
> Sent: Monday, February 11, 2008 5:29 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] Dynamic process
>
> Hi,
> In MPI-2 standard, we can create new processes thanks to
> MPI_Comm_spawn routine but there isn't any routine that
> allows to delete created processes. However, we can terminate
> a process within call to MPI_Finalize. So to terminate an
> alone process, I think that is easy:
> 1- free the intercommunicator between parent process and child;
> 2- call MPI_Finalize().
> My question is the following:
> What is the treatement when I have N processes and I would
> delete, for example, just one process from the group?
> Thanks in advance for your response
> regrads
>
>
>
More information about the mpich-discuss
mailing list