Professional Documents
Culture Documents
Lab Manual # 8
Objective:
To study the MPI collective operations, Synchronization
Theory:
Collective Operations:
Synchronization,
Data Movement
Collective Computation
These classes are not mutually exclusive, of course, since blocking data movement
functions also serve to synchronize process activity, and some MPI routines perform both
data movement and computation.
Synchronization:
MPIBarrier:
comm -communicator
Example of Usage
Key Point:
This command is a useful tool to help insure synchronization between processes. For
example, you may want all processes to wait until one particular process has read in data
from disk. Each process would call MPI_Barrierin the place in the program where the
synchronization is required.
Conclusion: