Lune

PPoPP2025Top-tier venue

RT-BarnesHut: Accelerating Barnes-Hut Using Ray-Tracing Hardware

Vani Nagarajan, Rohan Gangaraju, Kirshanthan Sundararajah, Artem Pelenitsyn, Milind Kulkarni

Abstract

The ๐‘›-body problem involves calculating the effect of bodies on each other. ๐‘›-body simulations are ubiquitous in the fields of physics and astronomy and notoriously computationally expensive. The naรฏve algorithm for ๐‘›-body simulations has the prohibiting ๐‘‚ (๐‘› 2 ) time complexity. Reducing the time complexity to ๐‘‚ (๐‘› โ€ข lg(๐‘›)), the tree-based Barnes-Hut algorithm approximates the effect of bodies beyond a certain threshold distance. Other than algorithmic improvements, extensive research has gone into accelerating ๐‘›-body simulations on GPUs and multi-core systems. However, Barnes-Hut is a tree-traversal algorithm, which makes it a poor target for acceleration using traditional GPU shader cores. In contrast, recent work shows that, for tree-based computations, GPU ray-tracing (RT) cores dominate shader cores. In this work, we reformulate the Barnes-Hut algorithm as a ray-tracing problem and implement it with NVIDIA OptiX. Our evaluation shows that the resulting system, RT-Bar-nesHut, outperforms current state-of-the-art GPU-based implementations.

We thank the anonymous PPoPP reviewers and our shepherd for their valuable feedback. We thank Dr. Tom Quinn for answering our questions about ChaNGa.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper ยท related work

Get the answer

Free to start. No credit card required.

Lineage

  • RTIndeX: Exploiting Hardware-Accelerated GPU Raytracing for Database Indexing cites RTNN: accelerating neighbor search using hardware ray tracing
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. RTNN: accelerating neighbor search using hardware ray tracingYuhao ZhuPPoPP 2022 ยท 43 citations
  2. RTIndeX: Exploiting Hardware-Accelerated GPU Raytracing for Database IndexingJustus Henneberg, Felix SchuhknechtVLDB 2023 ยท 25 citations

Related papers

  1. Generalizing Ray Tracing Accelerators for Tree Traversals on GPUsDongho Ha, Lufei Liu, Yuan-Hsi Chou, Seokjin Go et al.MICRO 2024 ยท 16 citations
  2. Extending GPU Ray-Tracing Units for Hierarchical Search AccelerationAaron Barnes, Fangjia Shen, Timothy G. RogersMICRO 2024 ยท 10 citations
  3. Treelet Accelerated Ray Tracing on GPUsYuan-Hsi Chou, Tor M. AamodtASPLOS 2025 ยท 3 citations
  4. Treelet Prefetching For Ray TracingYuan-Hsi Chou, Tyler Nowicki, Tor M. AamodtMICRO 2023 ยท 12 citations
  5. TTP: A Hardware-Efficient Design for Precise Prefetching in Ray TracingYavuz Selim Tozlu, Anshul Naithani, Huiyang ZhouISCA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines