Skip to main content
QUICK REVIEW

[Paper Review] Parallelizing the QUDA Library for Multi-GPU Calculations in Lattice Quantum Chromodynamics

Ronald Babich, Michael Clark, Balint Joo|arXiv (Cornell University)|Oct 29, 2010
Quantum Chromodynamics and Particle InteractionsPhysics and Astronomy59 citations
TL;DR

This paper presents the first successful parallelization of the QUDA library across multiple GPUs for lattice Quantum Chromodynamics (LQCD) calculations using MPI, enabling scalable performance on large problem sizes beyond single-GPU memory limits. By overlapping communication and computation via asynchronous memory transfers and optimizing for InfiniBand interconnects, the authors achieve strong scaling to over 3 TFlops on 32 GPUs and weak scaling to 4.75 TFlops, demonstrating a 10x performance gain over non-GPU clusters.

ABSTRACT

Graphics Processing Units (GPUs) are having a transformational effect on numerical lattice quantum chromodynamics (LQCD) calculations of importance in nuclear and particle physics. The QUDA library provides a package of mixed precision sparse matrix linear solvers for LQCD applications, supporting single GPUs based on NVIDIA's Compute Unified Device Architecture (CUDA). This library, interfaced to the QDP++/Chroma framework for LQCD calculations, is currently in production use on the "9g" cluster at the Jefferson Laboratory, enabling unprecedented price/performance for a range of problems in LQCD. Nevertheless, memory constraints on current GPU devices limit the problem sizes that can be tackled. In this contribution we describe the parallelization of the QUDA library onto multiple GPUs using MPI, including strategies for the overlapping of communication and computation. We report on both weak and strong scaling for up to 32 GPUs interconnected by InfiniBand, on which we sustain in excess of 4 Tflops.

Motivation & Objective

  • Address the memory limitations of single-GPU LQCD calculations by enabling multi-GPU parallelization.
  • Overcome performance bottlenecks in large-scale LQCD simulations by scaling solvers across multiple GPUs.
  • Achieve high-performance, cost-effective computation for complex hadron spectrum calculations requiring many right-hand sides.
  • Optimize communication and computation overlap to minimize latency and maximize bandwidth on InfiniBand-connected GPU clusters.
  • Enable production-scale LQCD analysis on large lattices previously infeasible on single GPUs due to memory constraints.

Proposed method

  • Implemented MPI-based domain decomposition to distribute the quark interaction matrix across multiple GPUs.
  • Used asynchronous CUDA memory transfers (cudaMemcpyAsync) to overlap communication with computation.
  • Employed processor affinity binding via OpenMPI to optimize memory bandwidth by aligning MPI processes with the correct CPU sockets.
  • Applied even-odd (red-black) preconditioning to improve convergence of non-symmetric Krylov solvers like BiCGstab.
  • Optimized data layout and memory access patterns to minimize latency and maximize throughput on NVIDIA GTX 285 GPUs.
  • Conducted microbenchmarks to characterize cudaMemcpy and cudaMemcpyAsync latencies and bandwidths, identifying hardware-specific bottlenecks on early Intel 5520 chipsets.

Experimental results

Research questions

  • RQ1Can the QUDA library be effectively parallelized across multiple GPUs using MPI to scale beyond single-GPU memory limits in LQCD?
  • RQ2How can communication and computation be effectively overlapped to minimize latency and maximize performance on multi-GPU clusters?
  • RQ3What performance scaling (strong and weak) can be achieved on a 32-GPU InfiniBand-connected system for realistic LQCD problem sizes?
  • RQ4How do system-level factors such as NUMA topology and PCIe bandwidth affect multi-GPU performance in LQCD solvers?
  • RQ5To what extent does multi-GPU parallelization improve cost-effectiveness and utilization of GPU cluster nodes compared to single-GPU or non-GPU workloads?

Key findings

  • The authors achieved strong scaling to over 3 TFlops on 32 GPUs for a physically relevant problem size, representing a 10x performance increase over a non-GPU cluster with the same number of processors.
  • Weak scaling reached 4.75 TFlops on 32 GPUs, demonstrating effective load distribution across the system.
  • Asynchronous memory transfers (cudaMemcpyAsync) introduced a latency of ~50 microseconds, significantly higher than synchronous cudaMemcpy at ~11 microseconds, highlighting a system-specific hardware limitation.
  • Performance was severely degraded when MPI processes were bound to the wrong CPU socket, underscoring the importance of proper NUMA-aware process binding for optimal bandwidth.
  • The multi-GPU approach enabled the solution of large-scale LQCD problems (e.g., 243×128 lattices) previously infeasible on single GPUs due to memory constraints.
  • The optimized multi-GPU solver is now in production use for hadron spectrum calculations using the distillation technique, with 32,768 solver calls per configuration, benefiting significantly from GPU acceleration.

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.