English

New features of parallel implementation of N-body problems on GPU

Computational Physics 2018-03-06 v1 Astrophysics of Galaxies

Abstract

This paper focuses on the parallel implementation of a direct NN-body method~(particle-particle algorithm) and the application of multiple GPUs for galactic dynamics simulations. Application of a hybrid OpenMP-CUDA technology is considered for models with a number of particles N105÷107N \sim 10^5 \div 10^7. By means of NN-body simulations of gravitationally unstable stellar galactic we have investigated the algorithms parallelization efficiency for various Nvidia Tesla graphics processors~(K20, K40, K80). Particular attention was paid to the parallel performance of simulations and accuracy of the numerical solution by comparing single and double floating-point precisions~(SP and DP). We showed that the double-precision simulations are slower by a factor of~1.71.7 than the single-precision runs performed on Nvidia Tesla K-Series processors. We also claim that application of the single-precision operations leads to incorrect result in the evolution of the non-axisymmetric gravitating NN-body systems. In particular, it leads to significant quantitative and even qualitative distortions in the galactic disk evolution. For instance, after 10410^4 integration time steps for the single-precision numbers the total energy, momentum, and angular momentum of a system with N=220N = 2^{20} conserve with accuracy of 10310^{-3}, 10210^{-2} and 10310^{-3} respectively, in comparison to the double-precision simulations these values are 10510^{-5}, 101510^{-15} and 101310^{-13}, respectively. Our estimations evidence in favour of usage of the second-order accuracy schemes with double-precision numbers since it is more efficient than in the fourth-order schemes with single-precision numbers.

Keywords

Cite

@article{arxiv.1803.01190,
  title  = {New features of parallel implementation of N-body problems on GPU},
  author = {S. S. Khrapov and S. A. Khoperskov and A. V. Khoperskov},
  journal= {arXiv preprint arXiv:1803.01190},
  year   = {2018}
}

Comments

12 pages, 7 figures

R2 v1 2026-06-23T00:40:55.035Z