Abstract
Synchronization overheads pose a major challenge as applications advance towards extreme scales. In current large-scale algorithms, synchronization as well as data communication delay the parallel computations at each time step in a time-dependent partial differential equation (PDE) solver. This creates a new scaling wall when moving towards exascale. We present a weakly-synchronous algorithm based on novel asynchrony-tolerant (AT) finite-difference schemes that relax synchronization at a mathematical level. We utilize remote memory access programming schemes that have been shown to provide significant speedup on modern supercomputers, to efficiently implement communications suitable for AT schemes, and compare to two-sided communications that are state-of-practice. We present results from simulations of Burgers' equation as a model of multi-scale strongly non-linear dynamical systems. Our algorithm demonstrates excellent scalability of the new AT schemes for large-scale computing, with a speedup of up to 3.3x in communication time and 2.19x in total runtime. We expect that such schemes can form the basis for exascale PDE algorithms.
Introduction: The Exascale Scaling Wall
As we approach the era of exascale computing—supercomputers capable of a quintillion calculations per second—the primary bottleneck is no longer raw processing power, but the cost of synchronization. In traditional parallel computing, thousands of processors must pause and "shake hands" at every single time step to exchange data. This paper introduces a "weakly-synchronous" algorithm that allows parallel processors to solve partial differential equations (PDEs) without waiting for every neighbor to finish, effectively breaking the scaling wall.
The Problem: Halo Exchanges and System Noise
Most physical simulations, such as weather forecasting or aerodynamics, rely on solving PDEs. To perform these at scale, a large computational domain is divided into pieces and distributed across thousands of processing elements (PEs).
To calculate the state of a point on the edge of its assigned piece, a processor requires data from its neighbor’s piece—a process known as a halo exchange. In standard synchronous algorithms, every processor must wait for these messages to arrive before proceeding to the next time step. As systems scale to millions of PEs, even minor "system noise" (random OS delays or network jitters) creates a ripple effect of waiting, leading to massive inefficiencies.
Methodology: A Three-Pronged Attack
The researchers addressed this problem at the mathematical, algorithmic, and software levels:
- Asynchrony-Tolerant (AT) Schemes: Traditionally, using "stale" data from a neighbor would ruin a simulation's accuracy. The authors developed new finite-difference stencils that mathematically account for delays. These stencils are wider than usual, utilizing multiple past time levels to "correct" the error introduced by outdated neighbor data.
- Weakly-Synchronous (WS) Algorithm: Instead of a hard stop at every step, the WS algorithm allows a processor to proceed as long as the neighbor's data isn't older than a pre-defined maximum allowable delay ($L$).
- Notified Remote Memory Access (RMA): They moved away from standard two-sided MPI (where both sender and receiver must coordinate) to a one-sided model (foMPI-NA). This allows a processor to "push" data directly into a neighbor's memory and attach a notification, letting the neighbor check for updates whenever it is ready, further decoupling the processes.
Key Results and Insights
The algorithm was tested using up to 12,288 CPU cores on the Piz Daint supercomputer. The most striking insight is that mathematical modeling can act as a buffer for software engineering limitations. By making the math "smarter," the system becomes resilient to network latency.
Performance and Accuracy
- Speedup: At extreme scales, the WS algorithm was 3.3x faster in communication time and 2.19x faster in total runtime compared to traditional synchronous methods.
- Accuracy: Despite the relaxed synchronization, the difference in final physical results between the perfectly synced and weakly synced versions was less than 0.005%. As shown in the convergence plots, the AT schemes successfully recover second-order accuracy.
- Scaling: While traditional algorithms plateaued due to synchronization overhead, the WS algorithm continued to show efficient "strong scaling," effectively utilizing more processors to finish tasks faster.
Limitations and Future Work
While promising, the current work focuses on explicit time-stepping. Many complex problems require implicit solvers, which involve solving large systems of linear equations; future research will explore coupling WS methods with asynchronous iterative linear solvers. Additionally, the use of circular buffers to handle delays increases the memory footprint per processor, a factor that must be managed in memory-intensive simulations. Extending these AT stencils to higher-order precision (4th or 6th order) is also a priority for future exascale applications.
Summary updated