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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on2
Related papers
- Generalizing Ray Tracing Accelerators for Tree Traversals on GPUsDongho Ha, Lufei Liu, Yuan-Hsi Chou, Seokjin Go et al.MICRO 2024 ยท 16 citations
- Extending GPU Ray-Tracing Units for Hierarchical Search AccelerationAaron Barnes, Fangjia Shen, Timothy G. RogersMICRO 2024 ยท 10 citations
- Treelet Accelerated Ray Tracing on GPUsYuan-Hsi Chou, Tor M. AamodtASPLOS 2025 ยท 3 citations
- TTP: A Hardware-Efficient Design for Precise Prefetching in Ray TracingYavuz Selim Tozlu, Anshul Naithani, Huiyang ZhouISCA 2026
- RayDB: Building Databases with Ray Tracing CoresXuri Shi, Kai Zhang, X. Sean Wang, Xiaodong Zhang et al.VLDB 2026 ยท 3 citations
