Synchronization
Christopher Cameron, Steve Lantz, Brandon Barker, CAC Staff (original)
Cornell Center for Advanced Computing
Revisions: 5/2022, 1/2014, 2001 (original)
This topic introduces using collective communication to synchronize the execution of code within a set of processes.
Objectives
After you complete this segment, you should be able to:
- Define barrier synchronization
- Demonstrate using the MPI_BARRIER routine for C and Fortran
Prerequisites
- A basic knowledge of parallel programming and MPI. Information on these prerequisites can be found in other topics (Parallel Programming Concepts and High-Performance Computing, MPI Basics).
- Ability to program in a high-level language such as Fortran or C.