95. Barrier Synchronization

PreviousUpNext
Up: Contents Next: Broadcast Previous: Specifics for Intercommunicator Collective Operations

MPI_BARRIER(comm)
IN commcommunicator (handle)

int MPI_Barrier(MPI_Comm comm)

MPI_Barrier(comm, ierror)
TYPE(MPI_Comm), INTENT(IN) :: comm
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
MPI_BARRIER(COMM, IERROR)
INTEGER COMM, IERROR

If comm is an intracommunicator, MPI_BARRIER blocks the caller until all group members have called it. The call returns at any process only after all group members have entered the call.

If comm is an intercommunicator, MPI_BARRIER involves two groups. The call returns at processes in one group (group A) of the intercommunicator only after all members of the other group (group B) have entered the call (and vice versa). A process may return from the call before all processes in its own group have entered the call.


PreviousUpNext
Up: Contents Next: Broadcast Previous: Specifics for Intercommunicator Collective Operations


Return to MPI-3.1 Standard Index
Return to MPI Forum Home Page

(Unofficial) MPI-3.1 of June 4, 2015
HTML Generated on June 4, 2015