[mpich-discuss] Freeing not needed MPI processes

Dave Goodell goodell at mcs.anl.gov
Thu Dec 16 14:11:51 CST 2010


I think that you could use dynamic processes together with MPI_Comm_disconnect to allow worker processes to exit prematurely while the master processes continue to work.

-Dave

On Dec 16, 2010, at 2:02 PM CST, Yauheni Zelenko wrote:

> Hi!
> 
> I have a question about correct way of freeing not needed MPI processes.
> 
> Our application may decide distributed of regular mode based on input data. But MPI processes started before such decision could be made. In regular mode it need only one master process, so all other may exit. Current implementation wait for exit message from master process before calling MPI_Finalize() on slaves.
> 
> Is there other methods to exit from not needed processes to not waste resources?
> 
> Thank you,
> Eugene.
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list