[MPICH] MPI_Finalize preconditions

Rob Ross rross at mcs.anl.gov
Thu Jan 26 14:48:45 CST 2006


Actually I should clarify that.  If the process has received all 
incoming messages *and* all sends have completed, then the process is 
ready to call finalize.

Rob

Rob Ross wrote:
> 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