| MPI_BARRIER( comm ) | |
| IN comm | communicator (handle) | 
 
  int MPI_Barrier(MPI_Comm comm) 
  
 
  MPI_BARRIER(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.  
  
  
2.2If  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.  
  
 
 
 INTEGER COMM, IERROR 
  
  
  
 { void MPI::Comm::Barrier() const = 0  (binding deprecated, see Section Deprecated since  MPI-2.2 
) }
  
  
  
![]()
![]()
![]()
Up: Contents
Next:  Broadcast
Previous:  Specifics for Intercommunicator Collective Operations
Return to MPI-2.2 Standard Index
Return to MPI Forum Home Page
(Unofficial) MPI-2.2 of September 4, 2009
HTML Generated on September 10, 2009