| | 1 | = MPI_Barrier = |
| | 2 | Blocks until all process have reached this routine. |
| | 3 | |
| | 4 | = Synopsis = |
| | 5 | {{{ |
| | 6 | #include "mpi.h" |
| | 7 | int MPI_Barrier (MPI_Comm comm ) |
| | 8 | }}} |
| | 9 | |
| | 10 | = Input Parameters = |
| | 11 | {{{ |
| | 12 | comm communicator (handle) |
| | 13 | }}} |
| | 14 | |
| | 15 | = Notes = |
| | 16 | 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. |
| | 17 | |
| | 18 | = Algorithm = |
| | 19 | If the underlying device cannot do better, a tree-like or combine algorithm is used to broadcast a message wto all members of the communicator. We can modifiy this to use "blocks" at a later time (see MPI_Bcast). |