
3.5 The Parallel Application Case Studies: An In-Depth Look 165
Synchronization Ocean uses two types of synchronization. First, global barriers are
used to synchronize all processes between computational phases (see Figure 3.14) as
well as between sweeps of the multigrid equation solver. Between several of the
phases, we could replace the barriers with finer-grained point-to-point synchroniza-
tion at the level of grid points to obtain some overlap across phases; however, in this
case the overlap is likely to be too small to justify the programming complexity and
the overhead of many more synchronization operations. The second form of synchro ...