Skip to main content
QUICK REVIEW

[Paper Review] Monte Carlo simulations on Graphics Processing Units

Vadim Demchik, Alexei Strelchenko|ArXiv.org|Mar 17, 2009
Parallel Computing and Optimization TechniquesComputer Science9 citations
TL;DR

This paper implements local Monte Carlo algorithms—Metropolis and heat-bath—on ATI Graphics Processing Units (GPUs) using the Compute Abstraction Layer (CAL) to accelerate simulations of the 2D Ising model and pure SU(2) gluodynamics. It demonstrates significant performance speedups over serial CPU execution, validating GPU acceleration for lattice field theory and statistical physics applications.

ABSTRACT

Implementation of basic local Monte-Carlo algorithms on ATI Graphics Processing Units (GPU) is investigated. The Ising model and pure SU(2) gluodynamics simulations are realized with the Compute Abstraction Layer (CAL) of ATI Stream environment using the Metropolis and the heat-bath algorithms, respectively. We present an analysis of both CAL programming model and the efficiency of the corresponding simulation algorithms on GPU. In particular, the significant performance speed-up of these algorithms in comparison with serial execution is observed.

Motivation & Objective

  • To implement standard local Monte Carlo algorithms—Metropolis and heat-bath—on ATI GPUs for lattice field theory and spin systems.
  • To evaluate the performance and efficiency of these algorithms when ported to GPU using the low-level CAL programming model.
  • To address the gap in literature by focusing on ATI Stream SDK and CAL rather than the more commonly used CUDA framework.
  • To assess the feasibility and performance gains of GPGPU for scientific simulations in statistical physics and quantum field theory.
  • To provide a foundation for future exploration of non-local algorithms and more complex models on GPU architectures.

Proposed method

  • Used the ATI Stream SDK's Compute Abstraction Layer (CAL) for low-level GPU kernel programming, enabling direct control over thread groups and memory hierarchies.
  • Implemented the Metropolis algorithm for the 2D Ising model using single-precision floating-point arithmetic and a custom pseudo-random number generator (PRNG) with thread-local state.
  • Applied the heat-bath algorithm to pure SU(2) gluodynamics simulations, leveraging GPU-optimized random number generation and matrix operations.
  • Employed global and constant buffers for data storage, with thread blocks mapping to lattice sites to enable data-parallel execution.
  • Utilized compute shaders and local data sharing (LDS) within SIMD cores to optimize memory access and reduce latency.
  • Configured the GPU with 160 stream processors (RV770Pro), 512MB GDDR3 memory, and 256-bit bus, targeting high-throughput computation.

Experimental results

Research questions

  • RQ1How efficiently can local Monte Carlo algorithms like Metropolis and heat-bath be implemented on ATI GPUs using the CAL programming model?
  • RQ2What performance speedup can be achieved by offloading lattice simulations to GPU compared to serial CPU execution?
  • RQ3How does the choice of low-level CAL over higher-level tools like Brook+ affect performance and control in GPGPU simulations?
  • RQ4To what extent does GPU acceleration mitigate the computational cost of Monte Carlo simulations in statistical field theories?
  • RQ5Can the performance gains be consistently observed across different models (Ising and SU(2)) using the same GPU kernel framework?

Key findings

  • The Metropolis algorithm for the 2D Ising model achieved substantial speedup over serial CPU execution, with performance scaling effectively with lattice size.
  • The heat-bath algorithm for SU(2) gluodynamics demonstrated high efficiency on GPU, benefiting from optimized memory access and parallel random number generation.
  • The use of CAL enabled fine-grained control over memory and thread organization, resulting in better performance than higher-level abstractions like Brook+.
  • The GPU achieved peak single-precision performance exceeding 1 TFlops and double-precision performance around 250 GFlops, significantly outperforming high-end CPUs.
  • The implementation showed that GPU acceleration is viable and efficient for local Monte Carlo updates in lattice field theory and spin systems.
  • Despite limitations such as lack of runtime debugging and beta status of the SDK, the framework proved stable and effective for the tested 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.