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 条
  • [41] Halo mass and weak galaxy-galaxy lensing profiles in resealed cosmological N-body simulations
    Renneby, Malin
    Hilbert, Stefan
    Angulo, Raul E.
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2018, 479 (01) : 1100 - 1124
  • [42] GENGA. II. GPU Planetary N-body Simulations with Non-Newtonian Forces and High Number of Particles
    Grimm, Simon L.
    Stadel, Joachim G.
    Brasser, Ramon
    Meier, Matthias M. M.
    Mordasini, Christoph
    ASTROPHYSICAL JOURNAL, 2022, 932 (02):
  • [43] Machine learning methods to estimate observational properties of galaxy clusters in large volume cosmological N-body simulations
    de Andres, Daniel
    Yepes, Gustavo
    Sembolini, Federico
    Martinez-Munoz, Gonzalo
    Cui, Weiguang
    Robledo, Francisco
    Chuang, Chia-Hsun
    Rasia, Elena
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2023, 518 (01) : 111 - 129
  • [44] Tidal mass loss in the Fornax dwarf spheroidal galaxy through N-body simulations with Gaia DR3-based orbits
    Di Cintio, Pierfrancesco
    Iorio, Giuliano
    Calura, Francesco
    Nipoti, Carlo
    Cantari, Marcello
    ASTRONOMY & ASTROPHYSICS, 2024, 690
  • [45] Parallel Dual Tree Traversal on Multi-core and Many-core Architectures for Astrophysical N-body Simulations
    Lange, Benoit
    Fortin, Pierre
    EURO-PAR 2014 PARALLEL PROCESSING, 2014, 8632 : 716 - 727
  • [46] Parallel tree N-body code: Data distribution and DLB on the CRAY T3D for large simulations
    Becciani, U
    Antonuccio-Delogu, V
    Gambera, M
    Pagliaro, A
    Ansaloni, R
    Erbacci, G
    ASTRONOMICAL DATA ANALYSIS SOFTWARE AND SYSTEMS VII (ADASS), 1998, 145 : 7 - 10
  • [47] The Tessellation-Level-Tree: characterizing the nested hierarchy of density peaks and their spatial distribution in cosmological N-body simulations
    Busch, Philipp
    White, Simon D. M.
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2020, 493 (04) : 5693 - 5712
  • [48] Visualization of Hybrid, N-body and Octree-based Adaptive Mesh Resolution Parallelized Simulations
    Pomarede, D.
    Fidaali, Y.
    Teyssier, R.
    COMPUTER GRAPHICS, IMAGING AND VISUALISATION - MODERN TECHNIQUES AND APPLICATIONS, PROCEEDINGS, 2008, : 295 - 304
  • [49] Tidal and general relativistic effects in rocky planet formation at the substellar mass limit using N-body simulations
    Sanchez, Mariana B.
    de Elia, Gonzalo C.
    Downes, Juan Jose
    ASTRONOMY & ASTROPHYSICS, 2020, 637 (637)
  • [50] Large-scale non-Gaussian mass function and halo bias: tests on N-body simulations
    Grossi, M.
    Verde, L.
    Carbone, C.
    Dolag, K.
    Branchini, E.
    Iannuzzi, F.
    Matarrese, S.
    Moscardini, L.
    MONTHLY NOTICES OF THE ROYAL ASTRONOMICAL SOCIETY, 2009, 398 (01) : 321 - 332