Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
arXiv:2002.02989 · doi:10.1007/978-3-030-50743-5_20
Abstract
Analytic, first-principles performance modeling of distributed-memory parallel codes is notoriously imprecise. Even for applications with extremely regular and homogeneous compute-communicate phases, simply adding communication time to computation time does often not yield a satisfactory prediction of parallel runtime due to deviations from the expected simple lockstep pattern caused by system noise, variations in communication time, and inherent load imbalance. In this paper, we highlight the specific cases of provoked and spontaneous desynchronization of memory-bound, bulk-synchronous pure MPI and hybrid MPI+OpenMP programs. Using simple microbenchmarks we observe that although desynchronization can introduce increased waiting time per process, it does not necessarily cause lower resource utilization but can lead to an increase in available bandwidth per core. In case of significant communication overhead, even natural noise can shove the system into a state of automatic overlap of communication and computation, improving the overall time to solution. The saturation point, i.e., the number of processes per memory domain required to achieve full memory bandwidth, is pivotal in the dynamics of this process and the emerging stable wave pattern. We also demonstrate how hybrid MPI-OpenMP programming can prevent desirable desynchronization by eliminating the bandwidth bottleneck among processes. A Chebyshev filter diagonalization application is used to demonstrate some of the observed effects in a realistic setting.
18 pages, 8 figures
Cited by in corpus (6)
- Understanding HPC Benchmark Performance on Intel Broadwell and Cascade Lake Processors
- The Role of Idle Waves, Desynchronization, and Bottleneck Evasion in the Performance of Parallel Programs
- Analytic Modeling of Idle Waves in Parallel Programs: Communication, Cluster Topology, and Noise Impact
- SPEChpc 2021 Benchmarks on Ice Lake and Sapphire Rapids Infiniband Clusters: A Performance and Energy Case Study
- Exploring Techniques for the Analysis of Spontaneous Asynchronicity in MPI-Parallel Applications
- Physical Oscillator Model for Supercomputing