FleCSPHg: A GPU Accelerated Framework for Physics and Astrophysics Simulations
This paper presents FleCSPHg, a GPU accelerated framework dedicated to Smoothed Particle Hydrodynamics (SPH) and gravitation (FMM) computation. Astrophysical simulations, with the case of binary neutron stars coalescence, are used as test cases. In this context we show the efficiency of the tree data structure in two conditions. The first for near-neighbors search with SPH and the second with N-body algorithm for the gravitation computation.
FleCSPHg is based on FleCI and FleCSPH developed at the Los Alamos National Laboratory. This work is a first step to provide a multi-physics framework for tree-based methods.
This paper details either SPH, FMM methods and the simulation we propose. It describes FleCSI and FleCSPH and our strategy to divide the work load between CPU and GPU. The CPU is associate with the tree traversal and generates tasks at a specific depth for the GPU. These tasks are offloaded to the GPU and gathered on the CPU at the end of the traversal.
The computation time is up to 3.5 times faster on the GPU version than classical CPU. We also give details on the simulation itself for the binary neutron star coalescence.
KeywordsHPC Hybrid architectures Smoothed Particle Hydrodynamics Simulation
We would like to thanks the ROMEO supercomputer center on which all the tests below were performed. This work is part of the FleCSI and FleCSPH development. We would like to thanks the Los Alamos National Laboratory and the CCS-7 for the contributions on this work.
- 4.Bauer, M., Treichler, S., Slaughter, E., Aiken, A.: Legion: expressing locality and independence with logical regions. In: Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis, p. 66. IEEE Computer Society Press (2012)Google Scholar
- 6.Bergen, B., Moss, N., Charest, M.R.J.: Flexible computational science infrastructure. Technical report, Los Alamos National Laboratory (LANL), Los Alamos, NM, United States (2016)Google Scholar
- 9.Hopkins, P.F.: Gizmo: multi-method magneto-hydrodynamics+ gravity code. Astrophysics Source Code Library (2014)Google Scholar
- 11.Landau, L.D., Lifshitz, E.M.: Fluid mechanics (1959)Google Scholar
- 14.Monaghan, J., Gingold, R.: Shock simulation by the particle method SPH. J. Comput. Phys. 52(2), 374–389 (1983). https://doi.org/10.1016/0021-9991(83)90036-0. http://www.sciencedirect.com/science/article/pii/0021999183900360CrossRefzbMATHGoogle Scholar
- 15.Rosswog, S.: Astrophysical smooth particle hydrodynamics. New Astron. Rev. 53(4), 78–104 (2009). https://doi.org/10.1016/j.newar.2009.08.007. http://www.sciencedirect.com/science/article/pii/S1387647309000487CrossRefGoogle Scholar
- 18.Warren, M.S.: 2HOT: an improved parallel hashed Oct-Tree N-body algorithm for cosmological simulation. In: Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis, p. 72. ACM (2013)Google Scholar
- 19.Yokota, R., Barba, L.A.: Treecode and fast multipole method for N-body simulation with CUDA. In: GPU Computing Gems Emerald Edition, pp. 113–132. Elsevier (2011)Google Scholar