Skip to main content
QUICK REVIEW

[Paper Review] Adaptive algebraic multigrid on SIMD architectures

Simon Heybrock, Matthias Rottmann|arXiv (Cornell University)|Dec 14, 2015
Parallel Computing and Optimization TechniquesComputer Science3 references4 citations
TL;DR

This paper presents an optimized implementation of the adaptive algebraic multigrid method DD-αAMG on SIMD architectures, specifically targeting the Intel Xeon Phi (KNC) in QPACE 2. By vectorizing key components such as restriction, prolongation, coarse-grid operator setup, and Gram-Schmidt orthogonalization, the authors achieve speedups up to 20.2×, reducing MG computation time to negligible levels and shifting the performance bottleneck to coarse-grid solve communication, which is now the primary target for further optimization.

ABSTRACT

We present details of our implementation of the Wuppertal adaptive algebraic multigrid code DD-$α$AMG on SIMD architectures, with particular emphasis on the Intel Xeon Phi processor (KNC) used in QPACE 2. As a smoother, the algorithm uses a domain-decomposition-based solver code previously developed for the KNC in Regensburg. We optimized the remaining parts of the multigrid code and conclude that it is a very good target for SIMD architectures. Some of the remaining bottlenecks can be eliminated by vectorizing over multiple test vectors in the setup, which is discussed in the contribution of Daniel Richtmann.

Motivation & Objective

  • To adapt and optimize the Wuppertal DD-αAMG algebraic multigrid code for efficient execution on SIMD architectures, particularly the Intel Xeon Phi (KNC).
  • To reduce computational bottlenecks in the multigrid cycle by leveraging vectorization on SIMD units, especially for restriction, prolongation, coarse-grid operator setup, and Gram-Schmidt orthogonalization.
  • To identify and address the new dominant performance bottleneck after optimization, which is found to be communication in the coarse-grid solve phase.
  • To enable high-performance lattice QCD simulations by making adaptive algebraic multigrid a scalable and efficient preconditioner on modern manycore SIMD systems.

Proposed method

  • Vectorized the restriction and prolongation operations using SIMD intrinsics, merging components of multiple test vectors into single SIMD vectors to improve data-level parallelism.
  • Optimized the coarse-grid operator setup by applying SIMD vectorization to matrix-vector products involving the Dirac operator and interpolation matrices.
  • Implemented block Gram-Schmidt orthogonalization with SIMD vectorization to improve cache reuse and reduce memory bandwidth, favoring classical over modified Gram-Schmidt for better vectorization efficiency.
  • Used half-precision storage for the coarse-grid operator to reduce memory bandwidth and working set size without compromising stability or convergence.
  • Applied a temporary workaround of on-the-fly de-interleaving of real and imaginary parts to enable SIMD computation in the coarse-grid linear algebra phase.
  • Retained the original smoother code from prior KNC work and focused optimization on the remaining multigrid components, particularly those involving sparse matrix-vector operations and orthogonalization.

Experimental results

Research questions

  • RQ1How can the DD-αAMG algorithm be effectively adapted and vectorized for SIMD architectures like the Intel Xeon Phi (KNC)?
  • RQ2What are the performance bottlenecks in the multigrid cycle after vectorization, and how do they shift compared to the original code?
  • RQ3To what extent can vectorization of restriction, prolongation, coarse-grid setup, and Gram-Schmidt operations improve performance on SIMD units?
  • RQ4Can half-precision storage of the coarse-grid operator be safely used without affecting convergence or stability?
  • RQ5What role does communication overhead (e.g., halo exchange and global sums) play in the coarse-grid solve after optimization, and can it be mitigated?

Key findings

  • Vectorization achieved speedups of up to 20.2× for the application of the coarse-grid operator to off-diagonal blocks, with 19.7× for coarse-grid operator setup.
  • The restriction and prolongation operations saw speedups of 14.1× and 8.6×, respectively, due to effective SIMD vectorization of multiple test vectors.
  • Gram-Schmidt orthogonalization on aggregates achieved a 10.8× speedup, demonstrating the effectiveness of block Gram-Schmidt with SIMD data layout.
  • After optimization, the MG components no longer dominate execution time; instead, the coarse-grid solve's communication overhead (halo exchange and global sums) has become the primary bottleneck.
  • The use of half-precision for the coarse-grid operator did not degrade stability or convergence, and was adopted as the default to reduce memory bandwidth.
  • The authors conclude that DD-αAMG is an excellent target for SIMD architectures, with communication in the coarse-grid solve now the main focus for further optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.