Skip to main content
QUICK REVIEW

[Paper Review] Oct-tree Method on GPU

Nobukazu Nakasato|ArXiv.org|Sep 2, 2009
Computational Physics and Python ApplicationsComputer Science17 references5 citations
TL;DR

This paper presents a highly optimized, iterative GPU implementation of the oct-tree method for cosmological N-body simulations, achieving 21.8 Gflops sustained performance at a cost of $41.6/Gflops—2.5× better than the prior record. By transforming recursive tree traversal into an iterative GPU kernel and leveraging the RV770 GPU's stream cores, the method outperforms brute-force and FMM-based approaches for large-scale astrophysical simulations with N > 10,000 particles.

ABSTRACT

The kd-tree is a fundamental tool in computer science. Among others, an application of the kd-tree search (oct-tree method) to fast evaluation of particle interactions and neighbor search is highly important since computational complexity of these problems are reduced from O(N^2) with a brute force method to O(N log N) with the tree method where N is a number of particles. In this paper, we present a parallel implementation of the tree method running on a graphic processor unit (GPU). We successfully run a simulation of structure formation in the universe very efficiently. On our system, which costs roughly $900, the run with N ~ 2.87x10^6 particles took 5.79 hours and executed 1.2x10^13 force evaluations in total. We obtained the sustained computing speed of 21.8 Gflops and the cost per Gflops of 41.6/Gflops that is two and half times better than the previous record in 2006.

Motivation & Objective

  • To develop a high-performance, GPU-accelerated oct-tree method for cosmological N-body simulations.
  • To reduce computational cost per Gflop by leveraging GPU parallelism and optimizing tree traversal for GPU execution.
  • To outperform existing brute-force and FMM-based GPU methods in performance and cost-efficiency for large N simulations.
  • To enable scalable, realistic astrophysical simulations involving short-range forces like SPH by extending the oct-tree framework.

Proposed method

  • Transformed recursive oct-tree traversal into an iterative kernel to improve GPU thread divergence and memory coalescing.
  • Implemented force calculation using single-precision floating-point operations on 800 stream cores of the RV770 GPU, with 160 thread processors (TPs) each handling up to five operations per cycle.
  • Used a hierarchical memory model with shared memory and texture cache to optimize data access during tree traversal and force evaluation.
  • Employed a particle distribution with adaptive opening angle θ = 0.6 to balance accuracy and computational cost.
  • Integrated force interaction counting via integration of force interaction rates over time to estimate total FLOPs.
  • Optimized memory access patterns and minimized redundant tree construction by reusing spatial data structures across timesteps.

Experimental results

Research questions

  • RQ1Can an iterative oct-tree traversal be efficiently mapped to GPU architecture to achieve high performance in N-body simulations?
  • RQ2What is the performance and cost-efficiency of a GPU-accelerated oct-tree method compared to brute-force and FMM-based approaches?
  • RQ3How does the oct-tree method scale in terms of sustained FLOPS and cost per Gflop for cosmological simulations with N > 10^6 particles?
  • RQ4Can the GPU-optimized oct-tree method outperform FMM on GPU for clustered particle distributions typical in astrophysical simulations?

Key findings

  • The GPU-optimized oct-tree method achieved a sustained performance of 21.8 Gflops on an RV770 GPU with a total of 1.2×10^13 force evaluations.
  • The cost per Gflop was $41.6, representing a 2.5× improvement over the previous best result of $105/Gflop.
  • For N > 10,000 particles, the oct-tree method on GPU significantly outperformed the brute-force method due to its O(N log N) complexity.
  • The method achieved a 70% cache hit rate during testing with N = 1,048,576 particles, indicating efficient memory access.
  • The oct-tree method outperformed a recent FMM implementation on GPU (NVIDIA G80) for the same particle count and distribution, despite FMM’s O(N) complexity.
  • The implementation is extensible to include short-range forces such as those in smoothed particle hydrodynamics (SPH), enabling more realistic astrophysical 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.