Doxygen Generated Documentation From Interface Source Code
Pipeline_globalCheckStatus.F90 File Reference

Go to the source code of this file.


subroutine Pipeline_globalCheckStatus (finishedComm, emptyRecvBuffers, emptyItemBuffers)

Function/Subroutine Documentation

◆ Pipeline_globalCheckStatus()

subroutine Pipeline_globalCheckStatus ( logical  finishedComm,
logical  emptyRecvBuffers,
logical  emptyItemBuffers 

Returns the global status of the pipeline. This is a blocking operation that currently evaluates the following statuses: 1) has all communication inside the pipeline been performed?, 2) are all receive buffers on all channels on all processors empty? and 3) are all item buffers on all channels empty?.


The status vector on all processors are all summation reduced and redistributed on all processors. On each processor the communication entry contains a positive integer +n for all n sends posted and a collection of negative integers {-m} for all channel processor ID's on which -m receives completed. Reduction under summation will give the overall active sends that have not completed. All entries in the reduced status vector must hence be >= 0. A negative entry indicates a bug someplace.

The receive and item buffer information in the status vector is non-overlapping and specific to each processor (with entries of +1 or 0). Hence reduction under summation and redistribution will not change the info contained in the status vector.

finishedComm : is set true, if no more communication is scheduled globally emptyRecvBuffers : is set true, if all receive buffers on all processors are empty emptyItemBuffers : is set true, if all item buffers on all processors are empty


This is a collective operation, hence all processors must call it.

Definition at line 46 of file Pipeline_globalCheckStatus.F90.