[MPICH] MPI_Finalize preconditions

Rob Ross rross at mcs.anl.gov
Thu Jan 26 14:42:22 CST 2006


Hi Angel,

If a given process has received all incoming messages, then that process 
is ready to call finalize.  You don't have to perform the barrier 
operation; it's just extra overhead.

Regards,

Rob

Angel Tsankov wrote:
> The MPI standard says:
> "The user must ensure that all pending communications involving a 
> process completes before the process calls MPI_FINALIZE."
> 
> If each nonblocking receive call has a matching wait call, does a call 
> to MPI_Barrier( MPI_COMM_WORLD ) in all processes (and after the wait 
> calls) ensure that all communications involving the processes have 
> completed?




More information about the mpich-discuss mailing list