Skip to main content
QUICK REVIEW

[Paper Review] Generating SU(Nc) pure gauge lattice QCD configurations on GPUs with CUDA and OpenMP

Nuno Cardoso, Pedro Bicudo|arXiv (Cornell University)|Dec 20, 2011
Quantum Chromodynamics and Particle InteractionsPhysics and Astronomy2 citations
TL;DR

This paper presents optimized CUDA and OpenMP implementations for generating SU(Nc) pure gauge lattice QCD configurations on GPUs, achieving high performance for SU(2), SU(3), SU(4), and a generic SU(Nc) code for Nc ≥ 4. The authors demonstrate significant speedups over CPU-based methods, with publicly available code for the lattice QCD community.

ABSTRACT

The starting point of any lattice QCD computation is the generation of a Markov chain of gauge field configurations. Due to the large number of lattice links and due to the matrix multiplications, generating SU(Nc) lattice QCD configurations is a highly demanding computational task, requiring advanced computer parallel architectures such as clusters of several Central Processing Units (CPUs) or Graphics Processing Units (GPUs). In this paper we present and explore the performance of CUDA codes for NVIDIA GPUs to generate SU(Nc) lattice QCD pure gauge configurations. Our implementation in one GPU uses CUDA and in multiple GPUs uses OpenMP and CUDA. We present optimized CUDA codes SU(2), SU(3) and SU(4). We also show a generic SU(Nc) code for Nc$\,\geq 4$ and compare it with the optimized version of SU(4). Our codes are publicly available for free use by the lattice QCD community.

Motivation & Objective

  • To accelerate the generation of SU(Nc) pure gauge lattice QCD configurations, which are computationally intensive due to matrix multiplications and large lattice sizes.
  • To leverage GPU parallelism via CUDA for single-GPU performance and extend it to multi-GPU systems using OpenMP for scalability.
  • To develop optimized, generic SU(Nc) codes for Nc ≥ 4, enabling efficient simulations beyond SU(3) and SU(2).
  • To provide publicly available, high-performance code to support the lattice QCD community in advancing lattice field theory simulations.

Proposed method

  • Implementation of SU(Nc) gauge field updates using CUDA kernels to exploit data-level parallelism on NVIDIA GPUs.
  • Use of OpenMP to manage data distribution and synchronization across multiple GPUs in a hybrid CPU-GPU architecture.
  • Design of memory-access patterns and kernel launches to minimize latency and maximize occupancy on GPU streaming multiprocessors.
  • Optimization of matrix multiplication and SU(Nc) group projection routines using device-specific CUDA features.
  • Development of a generic SU(Nc) kernel that supports Nc ≥ 4, abstracting from specific group structures.
  • Benchmarking of performance across SU(2), SU(3), and SU(4) configurations on single and multi-GPU systems.

Experimental results

Research questions

  • RQ1How can GPU acceleration via CUDA improve the performance of SU(Nc) lattice QCD configuration generation?
  • RQ2What is the scalability and performance gain of using multiple GPUs with OpenMP and CUDA in lattice QCD simulations?
  • RQ3How does the performance of a generic SU(Nc) implementation for Nc ≥ 4 compare to optimized SU(4) code?
  • RQ4What are the key bottlenecks in GPU-based lattice gauge field generation, and how can they be mitigated?

Key findings

  • The CUDA-optimized single-GPU implementation achieves substantial speedups over traditional CPU-based methods for SU(2), SU(3), and SU(4) gauge groups.
  • The hybrid OpenMP + CUDA approach enables efficient scaling across multiple GPUs, significantly reducing configuration generation time for large lattices.
  • The generic SU(Nc) code for Nc ≥ 4 maintains high performance while supporting arbitrary unitary gauge groups beyond SU(3).
  • Performance benchmarks show that the optimized SU(4) kernel outperforms the generic SU(Nc) implementation for Nc = 4, indicating the value of code specialization.
  • The authors successfully deliver publicly available, production-ready code to the lattice QCD community, enabling broader access to high-performance simulations.

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.