Skip to main content
QUICK REVIEW

[Paper Review] QCDGPU: open-source package for Monte Carlo lattice simulations on OpenCL-compatible multi-GPU systems

Vadim Demchik, Natalia Kolomoyets|arXiv (Cornell University)|Oct 26, 2013
Quantum Chromodynamics and Particle InteractionsPhysics and Astronomy22 references9 citations
TL;DR

QCDGPU is an open-source, cross-platform Monte Carlo lattice simulation package for SU(N) gluodynamics and O(N) models on OpenCL-compatible multi-GPU systems. It enables high-performance, fault-tolerant simulations with support for single/double precision, dynamic load balancing across heterogeneous devices, and distributed computing via client-server architecture, achieving performance comparable to CUDA-based implementations on both AMD and NVIDIA GPUs.

ABSTRACT

The multi-GPU open-source package QCDGPU for lattice Monte Carlo simulations of pure SU(N) gluodynamics in external magnetic field at finite temperature and O(N) model is developed. The code is implemented in OpenCL, tested on AMD and NVIDIA GPUs, AMD and Intel CPUs and may run on other OpenCL-compatible devices. The package contains minimal external library dependencies and is OS platform-independent. It is optimized for heterogeneous computing due to the possibility of dividing the lattice into non-equivalent parts to hide the difference in performances of the devices used. QCDGPU has client-server part for distributed simulations. The package is designed to produce lattice gauge configurations as well as to analyze previously generated ones. QCDGPU may be executed in fault-tolerant mode. Monte Carlo procedure core is based on PRNGCL library for pseudo-random numbers generation on OpenCL-compatible devices, which contains several most popular pseudo-random number generators.

Motivation & Objective

  • To develop a portable, high-performance lattice Monte Carlo simulation package for lattice gauge theories that runs efficiently on diverse GPU and CPU platforms.
  • To enable large-scale simulations of SU(N) gluodynamics and O(N) models on heterogeneous multi-GPU systems using OpenCL for cross-platform compatibility.
  • To support fault-tolerant execution and distributed simulations across multiple hosts via a lightweight client-server architecture.
  • To minimize host CPU load and external dependencies, enabling integration with other HPC workflows.
  • To provide extensibility for adding new gauge groups and observables through modular code design.

Proposed method

  • Implementation in OpenCL to ensure portability across AMD, NVIDIA, and Intel GPUs and CPUs.
  • Use of a dynamic load-balancing strategy that divides the lattice into non-uniform parts to hide performance differences between heterogeneous devices.
  • Adoption of a client-server model for distributed simulations, enabling execution across multiple hosts via shared network folders.
  • Integration with PRNGCL for high-quality pseudo-random number generation on GPU devices, supporting multiple standard generators.
  • Support for both single- and double-precision floating-point arithmetic to balance performance and accuracy.
  • Incorporation of checkpointing mechanisms that save simulation state every N sweeps or M seconds to enable fault tolerance and resumption on different hardware.

Experimental results

Research questions

  • RQ1Can a portable, OpenCL-based simulation package achieve performance comparable to CUDA-based implementations on multi-GPU systems?
  • RQ2How effectively can heterogeneous GPU and CPU devices be load-balanced in lattice Monte Carlo simulations?
  • RQ3To what extent can fault-tolerant execution be achieved in long-running lattice simulations without data loss?
  • RQ4Can distributed simulations across multiple hosts be efficiently orchestrated using a lightweight client-server model?
  • RQ5How well does the package scale across different hardware platforms, including AMD and NVIDIA GPUs?

Key findings

  • QCDGPU achieves single-sweep performance of 6×10⁻⁴ seconds for SU(2) and 1.3×10⁻³ seconds for SU(3) on NVIDIA GeForce GTX 560 Ti, matching published CUDA-based results.
  • On AMD Radeon HD 7970, single-sweep times were 2.0×10⁻³ seconds (SU(2)) and 3.4×10⁻³ seconds (SU(3)), demonstrating strong performance on AMD hardware.
  • Double-precision performance was within acceptable ranges, with SU(3) taking 5.1×10⁻³ seconds on AMD and 4.9×10⁻³ seconds on NVIDIA GPUs.
  • Multi-GPU simulations on heterogeneous platforms (AMD and NVIDIA) showed performance gains of 10–25% over single-device best performance, indicating effective load balancing.
  • The package successfully supports fault-tolerant execution, allowing interruption and resumption of long simulations without data loss.
  • The client-server architecture enables distributed simulations across multiple hosts using shared network folders, with minimal network overhead from lightweight control messages.

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.