Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking and Implementation of Probability-Based Simulations on Programmable Graphics Cards

Stanimire Tomov, Michael McGuigan|arXiv (Cornell University)|Dec 2, 2003
Theoretical and Computational PhysicsPhysics and Astronomy6 references7 citations
TL;DR

This paper demonstrates that programmable GPUs, specifically the NV30, can efficiently accelerate probability-based simulations like the Ising and percolation models by leveraging their high-throughput floating-point operations. The authors achieve 44% of theoretical peak performance—comparable to a 2.8 GHz Pentium 4—making GPUs viable coprocessors for lattice-based numerical simulations with up to 6x speedup, especially when conditional branching is avoided via algorithmic restructuring.

ABSTRACT

The latest Graphics Processing Units (GPUs) are reported to reach up to 200 billion floating point operations per second (200 Gflops) and to have price performance of 0.1 cents per M flop. These facts raise great interest in the plausibility of extending the GPUs' use to non-graphics applications, in particular numerical simulations on structured grids (lattice). We review previous work on using GPUs for non-graphics applications, implement probability-based simulations on the GPU, namely the Ising and percolation models, implement vector operation benchmarks for the GPU, and finally compare the CPU's and GPU's performance. A general conclusion from the results obtained is that moving computations from the CPU to the GPU is feasible, yielding good time and price performance, for certain lattice computations. Preliminary results also show that it is feasible to use them in parallel

Motivation & Objective

  • To evaluate the feasibility of using programmable GPUs as coprocessors for numerical simulations on structured grids.
  • To benchmark the floating-point performance of the NV30 GPU using vector operations and probability-based models.
  • To compare GPU and CPU performance on lattice-based simulations, focusing on 32-bit floating-point arithmetic.
  • To explore optimization strategies such as eliminating conditional branching in fragment programs to improve GPU performance.
  • To assess the scalability and communication overhead between CPU and GPU for large-scale simulations.

Proposed method

  • Implementing the Ising and percolation models on the GPU using fragment shaders and the Cg high-level language.
  • Using vector operations as benchmarks to measure raw floating-point throughput on the NV30 GPU.
  • Measuring performance via frames per second and communication rates using glReadPixels, glDrawPixels, and glTexSubImage2D functions.
  • Restructuring the checkerboard lattice update pattern to avoid conditional if/else statements in fragment programs, replacing them with dual-lattice execution.
  • Evaluating CPU-GPU data transfer rates across different lattice sizes to assess communication bottlenecks.
  • Analyzing the impact of precision (32-bit floating point) and hardware limitations (e.g., no branching support) on performance.

Experimental results

Research questions

  • RQ1Can programmable GPUs achieve competitive performance for 32-bit floating-point lattice simulations compared to CPUs?
  • RQ2What is the actual floating-point performance of the NV30 GPU when running probability-based models like Ising and percolation?
  • RQ3How does the absence of branching in fragment programs affect performance, and can algorithmic restructuring mitigate this?
  • RQ4What are the communication bandwidth requirements between CPU and GPU for large-scale simulations?
  • RQ5To what extent can GPUs outperform CPUs in numerical simulations, and under what conditions?

Key findings

  • The NV30 GPU achieved 7 Gflops/s on vector operations, representing 44% of its theoretical peak performance.
  • The GPU implementation of the Ising and percolation models ran 2–6 times faster than the CPU on a 2.8 GHz Pentium 4, depending on the application.
  • Avoiding conditional branching in fragment programs via a dual-lattice approach could yield an additional 2x performance improvement.
  • CPU-GPU communication via the AGP 8x bus (2.1 GB/s) was not a bottleneck for lattice sizes up to 512×512, with write bandwidth reaching 350 MB/s.
  • Speedups of one order of magnitude over CPU are only observed in low-precision computations; 32-bit floating-point simulations show comparable or slightly better performance than the CPU.
  • The GPU's performance growth rate exceeds that of CPUs, suggesting long-term advantages for general-purpose computing on GPUs.

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.