Skip to main content
QUICK REVIEW

[Paper Review] GPU-Based Conjugate Gradient Solver for Lattice QCD with Domain-Wall Fermions

Ting-Wai Chiu, Tung‐Han Hsieh|arXiv (Cornell University)|Jan 2, 2011
Quantum Chromodynamics and Particle InteractionsPhysics and Astronomy6 citations
TL;DR

This paper presents a highly optimized GPU-based conjugate gradient (CG) solver for lattice QCD with domain-wall fermions, leveraging NVIDIA CUDA with mixed-precision arithmetic, defect correction, and reliable updates. The solver achieves 180 Gflops (sustained) on GTX 285 and 233 Gflops on GTX 480, significantly accelerating unquenched lattice QCD simulations with exact chiral symmetry.

ABSTRACT

We present the first GPU-based conjugate gradient (CG) solver for lattice QCD with domain-wall fermions (DWF). It is well-known that CG is the most time-consuming part in the Hybrid Monte Carlo simulation of unquenched lattice QCD, which becomes even more computational demanding for lattice QCD with exact chiral symmetry. We have designed a CG solver for the general 5-dimensional DWF operator on NVIDIA CUDA architecture with mixed-precision, using the defect correction as well as the reliable updates algorithms. We optimize our computation by even-odd preconditioning in the 4D space-time lattice, plus several innovative techniques for CUDA kernels. For NVIDIA GeForce GTX 285/480, our CG solver attains 180/233 Gflops (sustained).

Motivation & Objective

  • To address the computational bottleneck of the conjugate gradient (CG) solver in Hybrid Monte Carlo (HMC) simulations of unquenched lattice QCD with domain-wall fermions.
  • To enable practical simulation of unquenched lattice QCD with exact chiral symmetry on affordable GPU clusters instead of large supercomputers.
  • To design a highly optimized CG solver for the 5D domain-wall fermion operator on NVIDIA CUDA architecture using mixed-precision arithmetic.
  • To implement even-odd preconditioning and innovative CUDA kernel optimizations to maximize memory bandwidth and computational throughput.

Proposed method

  • Utilizes mixed-precision conjugate gradient (CG) with defect correction and reliable updates to enhance numerical stability and performance.
  • Applies even-odd preconditioning to the 4D space-time lattice, transforming the 5D domain-wall fermion operator into a block-structured form to improve conditioning.
  • Employs CUDA kernels optimized with shared memory for link variables and source vectors, reducing redundant memory access and improving data reuse.
  • Uses texture memory for caching link variables and vectors, and implements loop unrolling and kernel fusion to minimize kernel launch overhead.
  • Applies parallel reduction with shared memory for vector norm computations, with hierarchical block-level reductions to handle large vectors.
  • Generates optimized CUDA kernels using Python scripts to automate and tune low-level operations, especially for matrix-vector products involving $M_5$ and $D_w$.

Experimental results

Research questions

  • RQ1Can a GPU-based CG solver achieve sufficient performance to make unquenched lattice QCD simulations with domain-wall fermions feasible on modest GPU clusters?
  • RQ2How can mixed-precision CG with defect correction and reliable updates be effectively implemented on GPU architectures for the 5D domain-wall fermion operator?
  • RQ3What kernel-level optimizations are most effective for accelerating matrix-vector multiplications in the CG solver on NVIDIA GPUs?
  • RQ4To what extent does even-odd preconditioning improve convergence and performance in the context of domain-wall fermion CG solvers?
  • RQ5How does the performance of the CG solver scale across different GPU architectures, particularly between older (GTX 285) and newer (GTX 480) CUDA devices?

Key findings

  • The GPU-based CG solver achieves 180 Gflops (sustained) on NVIDIA GeForce GTX 285, significantly accelerating HMC simulations of unquenched lattice QCD.
  • On the newer NVIDIA GeForce GTX 480, the solver attains 233 Gflops (sustained), demonstrating a substantial performance gain due to improved single-precision performance and larger L1 cache.
  • The single-precision $D_w$ matrix-vector multiplication is the primary performance bottleneck, consuming the majority of the CG time despite mixed-precision arithmetic.
  • Double-precision operations, particularly in $M_5$ multiplication, contribute minimally to runtime, validating the efficiency of mixed-precision CG.
  • The Fermi architecture (GTX 480, C2050) shows notable improvements in single-precision $D_w$ multiplication and double-precision $M_5$ multiplication compared to earlier architectures.
  • The use of shared memory, texture memory, loop unrolling, and kernel fusion results in measurable performance gains, especially in memory-bound operations like vector reductions and matrix-vector products.

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.