NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Performance Analysis and Optimal Node-aware Communication for Enlarged Conjugate Gradient Methods

Shelby Lockhart, Amanda Bienz, William Gropp, Luke N. Olson · DOI

TL;DR

This paper tackles the scalability bottleneck in sparse linear solvers by optimizing the Enlarged Conjugate Gradient (ECG) method. The authors introduce a "node-aware" communication strategy that handles the dense messages generated by block-vector operations, achieving speedups of up to 60x on high-performance computing (HPC) systems like Blue Waters and Lassen.

What Problem Does This Paper Address?

Iterative solvers for large, sparse linear systems (like the Conjugate Gradient method) are the workhorses of scientific computing. However, they struggle with strong scalability: as you add more processors to solve the same problem, the time spent on communication and synchronization (collectives) quickly outweighs the actual computation.

Enlarged Krylov methods (ECG) were designed to fix this by using "block vectors" instead of single vectors. This reduces the total number of iterations needed to converge, thereby reducing the number of costly global synchronizations. However, there is a catch: ECG replaces many small messages with fewer, much denser messages in the sparse matrix-block vector multiplication (SpMBV) kernel. This shifts the performance bottleneck from global synchronization to point-to-point communication. This paper aims to solve that new bottleneck.

Methods

The authors propose and analyze several node-aware communication techniques to optimize the SpMBV kernel:

  1. 3-Step Communication: All data destined for a remote node is gathered into a single buffer on one "master" process per node, sent across the network, and then redistributed locally. This minimizes the number of inter-node messages.
  2. 2-Step Communication: Each process sends its data directly to a paired process on the destination node, which then redistributes it. This reduces data redundancy compared to standard communication but uses more network injections than the 3-step method.
  3. Nodal Optimal (Tuned) Communication: The authors' primary contribution is a hybrid approach. Because 3-step communication can saturate network bandwidth with large block vectors, they developed a "tuned" strategy. This method uses message-size thresholds to decide whether to conglomerate messages (3-step) or split them across multiple processes (2-step) to maximize throughput.

The study also includes robust performance modeling using the max-rate model, which accounts for network injection limits that simpler "postal" models ignore.

Datasets

The methods were evaluated using:

  • Example 2.1: A 2D Laplace equation discretized using a discontinuous Galerkin finite element method (via the MFEM library), resulting in a matrix with ~1.3 million rows and ~104 million nonzeros.
  • SuiteSparse Matrix Collection: A selection of nine large-scale matrices from various domains (e.g., audikw_1, Geo_1438, bone010, thermal2) chosen for their varying densities and structures to test the limits of the communication schemes.

Key Insights and Ideas

  • The Bottleneck Shift: In standard CG, the "killer" is the global inner product (all-reduce). In ECG, the bottleneck moves to the SpMBV. This means optimization efforts must shift from global synchronization to local network topology.
  • One Size Does Not Fit All: 3-step communication is often best for standard SpMV (single vector), but for block vectors (ECG), it can create "hot spots" on the network interface.
  • Topology Matters: The performance of these schemes varies significantly between different supercomputer architectures (e.g., the Gemini interconnect on Blue Waters vs. the InfiniBand on Lassen).
  • The "Aha" Moment: By splitting large messages across multiple processes on a single node, you can overcome injection bandwidth limits, effectively "widening the pipe" for data transfer.

Key Results

  • Massive Speedups: The tuned node-aware communication achieved up to 60x speedup over standard communication for specific matrices on the Lassen system.
  • Efficiency at Scale: For the Laplace test case, the new techniques reduced the percentage of time spent in point-to-point communication by 20% to 40% at high processor counts (up to 8,192 processes).
  • Model Accuracy: The authors' max-rate performance model accurately predicted the crossover points where node-aware communication becomes superior to standard methods, providing a theoretical foundation for their tuning strategy.

Limitations and Future Work

  • Setup Overhead: The "tuned" approach requires performing several SpMBV operations during the setup phase to determine the best strategy, which adds to the initial cost of the solver.
  • Matrix Density Sensitivity: Matrices with very low density (like Geo_1438) see minimal benefits from multi-step communication because the amount of data being moved is too small to overcome the added latency of the extra steps.
  • Future Directions: The authors suggest extending this work to hybrid architectures (CPUs + GPUs), where the communication patterns between the host and the accelerator add another layer of complexity to node-aware optimization.

Summary updated

BibTeX
@article{lockhart2023performance,
  author = {Shelby Lockhart and Amanda Bienz and William Gropp and Luke N. Olson},
  title = {{Performance Analysis and Optimal Node-aware Communication for Enlarged Conjugate Gradient Methods}},
  journal = {ACM Trans. Parallel Comput.},
  year = {2023},
  doi = {10.1145/3580003},
}
Figure