Kd-tree Based N-Body Simulations with Volume-Mass Heuristic on the GPU

被引:8
|
作者
Kofler, Klaus [1 ]
Steinhauser, Dominik [2 ]
Cosenza, Biagio [1 ]
Grasso, Ivan [1 ]
Schindler, Sabine [2 ]
Fahringer, Thomas [1 ]
机构
[1] Univ Innsbruck, DPS, Inst Comp Sci, Innsbruck, Austria
[2] Univ Innsbruck, Inst Astro & Particle Phys, Innsbruck, Austria
关键词
N-body; GPGPU; Kd-tree; CODE;
D O I
10.1109/IPDPSW.2014.141
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
N-body simulations represent an important class of numerical simulations in order to study a wide range of physical phenomena for which researchers demand fast and accurate implementations. Due to the computational complexity, simple brute-force methods to solve the long-distance interaction between bodies can only be used for small-scale simulations. Smarter approaches utilize neighbor lists, tree methods or other hierarchical data structures to reduce the complexity of the force calculations. However, such data structures have complex building algorithms which hamper their parallelization for GPUs. In this paper, we introduce a novel method to effectively parallelize N-body simulations for GPU architectures. Our method is based on an efficient, three-phase, parallel Kd-tree building algorithm and a novel volume-mass heuristic to reduce the simulation time and increase accuracy. Experiments demonstrate that our approach is the fastest monopole implementation with an accuracy that is comparable with state of the art implementations (GADGET-2). In particular, we are able to reach a simulation speed of up to 3 Mparticles/s on a single GPU for the force calculation, while still having a relative force error below 0.4% for 99% of the particles. We also show competitive performance with existing GPU implementations, while our competitor shows worse accuracy behavior as well as a higher energy error during time integration.
引用
收藏
页码:1257 / 1266
页数:10
相关论文
共 50 条
  • [21] Grid based linear neutrino perturbations in cosmological N-body simulations
    Brandbyge, Jacob
    Hannestad, Steen
    JOURNAL OF COSMOLOGY AND ASTROPARTICLE PHYSICS, 2009, (05):
  • [22] Shadowing-based reliability decay in softened n-body simulations
    Hayes, WB
    ASTROPHYSICAL JOURNAL, 2003, 587 (02): : L59 - L62
  • [23] A new discrete dynamical friction estimator based on N-body simulations
    Ma, Linhao
    Hopkins, Philip F.
    Kelley, Luke Zoltan
    Faucher-Giguere, Claude-Andre
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2023, 519 (04) : 5543 - 5553
  • [24] A Keplerian-based Hamiltonian splitting for gravitational N-body simulations
    Ferrari, G. Goncalves
    Boekholt, T.
    Portegies Zwart, S.
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2014, 440 (01) : 719 - 730
  • [25] Adaptive refinement tree: A new high-resolution N-body code for cosmological simulations
    Kravtsov, AV
    Klypin, AA
    Khokhlov, AM
    ASTROPHYSICAL JOURNAL SUPPLEMENT SERIES, 1997, 111 (01): : 73 - 94
  • [26] GraviDy: a modular, GPU-based, direct-summation N-body code
    Maureira-Fredes, Cristian
    Amaro-Seoane, Pau
    STAR CLUSTERS AND BLACK HOLES IN GALAXIES ACROSS COSMIC TIME, 2016, 10 (312): : 252 - 253
  • [27] Particle-Particle Particle-Tree: A Direct-Tree Hybrid Scheme for Collisional N-Body Simulations
    Oshino, Shoichi
    Funato, Yoko
    Makino, Junichiro
    PUBLICATIONS OF THE ASTRONOMICAL SOCIETY OF JAPAN, 2011, 63 (04) : 881 - 892
  • [28] N-body simulations, halo mass functions, and halo density profile in f(T) gravity
    Huang, Yiqi
    Zhang, Jiajun
    Ren, Xin
    Saridakis, Emmanuel N.
    Dong, Fuyu
    Cai, Yi-Fu
    PHYSICAL REVIEW D, 2022, 106 (06)
  • [29] N-BODY SIMULATIONS OF SECONDARY INFALL .1. FORMATION OF MASS PROFILE IN GALACTIC HALOS
    DEKEL, A
    KOWITT, M
    SHAHAM, J
    ASTROPHYSICAL JOURNAL, 1981, 250 (02): : 561 - 572
  • [30] Effects of the size of cosmological N-body simulations on physical quantities -: I.: Mass function
    Bagla, J. S.
    Prasad, Jayanti
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2006, 370 (02) : 993 - 1002