On the Strong Scaling of the Spectral Element Solver Nek5000 on Petascale Systems

Nicolas Offermans, Oana Marin, Michel Schanen, Jing Gong, Paul F. Fischer, Philipp Schlatter, Aleks Obabko, Adam Peplinski, Maxwell Hutchinson, Elia MerzariEASC 2016

Introduction

In the realm of High-Performance Computing (HPC), achieving efficient strong scaling—reducing the time-to-solution for a fixed problem size by increasing processor count—remains a significant challenge. As computational tasks are divided into increasingly smaller sub-domains, the overhead of inter-processor communication eventually outweighs the gains from parallel computation. This paper investigates the strong scaling limits of Nek5000, a prominent open-source fluid dynamics solver based on the Spectral Element Method (SEM), across three major petascale architectures: IBM Blue Gene/Q (Mira), Cray XC40 (Beskow), and Cray XK7 (Titan).

Methodology and Experimental Setup

The study focuses on the Direct Numerical Simulation (DNS) of turbulent flow in a straight pipe, a canonical benchmark in fluid mechanics. The problem sizes range from 18 million to over 2 billion degrees of freedom (DOF), corresponding to friction Reynolds numbers ($Re_\tau$) between 180 and 1000.

Visualization of the turbulent pipe flow benchmark, showing (a) the domain partitioning across processors and (b) the resulting velocity magnitude field.

The core of the Nek5000 solver involves solving the Poisson equation for pressure at each timestep. To optimize this, the researchers evaluated two coarse-grid solvers within the preconditioner:

  1. XXT: A communication-efficient direct solver based on Cholesky factorization.
  2. AMG (Algebraic Multigrid): An iterative solver optimized for low degrees of freedom per processor.

Performance was modeled using a linear interprocessor communication model accounting for network latency ($\alpha$) and bandwidth ($\beta$), with profiling conducted via architecture-specific tools like CrayPat and HPM.

Key Insights: Latency and Cache Effects

A notable finding was the occurrence of super-linear scaling. As the problem is partitioned into smaller chunks, the local data eventually fits entirely within the CPU's L1 cache. This reduction in cache misses allows the code to run faster than a perfectly linear speedup would suggest.

However, the primary bottleneck at high core counts is network latency. On systems like Beskow, which features high-speed CPUs, the "math" often completes much faster than the "talking" (communication), causing performance to hit a wall earlier than on more balanced systems like Mira. Furthermore, scaling is fundamentally limited by the granularity of the mesh; once the simulation reaches one spectral element per processor, load imbalances become severe, and communication overhead dominates.

Results and Scaling Limits

The researchers identified specific "breaking points" for strong scaling across the different architectures, measured in DOF per core:

  • Mira: 5,000 – 10,000 DOF/core (demonstrating the highest scalability).
  • Beskow: 30,000 – 50,000 DOF/core.
  • Titan: 10,000 – 220,000 DOF/core (highly sensitive to network noise).
Strong scaling results for $Re_\tau = 180$. The plot illustrates the time-to-solution as a function of node count, highlighting the transition from linear scaling to the communication-dominated regime.

Implementing a projection space scheme ($L=5$) to initialize the pressure solve further improved performance, reducing the required iterations by approximately 3.5x.

Conclusion and Future Directions

While Nek5000 demonstrates robust performance on current petascale systems, the path to exascale presents new hurdles. The study highlights that "network noise" and the increasing cost of global operations like MPI_Allreduce will require more resilient, communication-avoiding algorithms. Future work will also need to address the integration of hybrid CPU-GPU architectures to leverage the full power of next-generation supercomputers.

Summary updated

BibTeX
@inproceedings{offermans2016strong,
  author = {Nicolas Offermans and Oana Marin and Michel Schanen and Jing Gong and Paul F. Fischer and Philipp Schlatter and Aleks Obabko and Adam Peplinski and Maxwell Hutchinson and Elia Merzari},
  title = {{On the Strong Scaling of the Spectral Element Solver Nek5000 on Petascale Systems}},
  booktitle = {EASC},
  year = {2016},
  doi = {10.1145/2938615.2938617},
}
Figure