GOTHIC:通过分层时间步长控制加速的引力八叉树代码
GOTHIC: Gravitational oct-tree code accelerated by hierarchical time step controlling
摘要:
树方法是天体物理学中非常适合GPU的无碰撞$N$体模拟的广泛实现的算法。采用分层时间步进可以加速$N$体模拟;然而,它很少实现,其潜力在GPU实现中尚未得到测试。我们开发了一个基于分层时间步长控制的引力八叉树加速程序\texttt{GOTHIC},它采用了树方法和分层时间步长。代码通过实时监控每个函数的执行时间来进行自适应优化,并通过平衡多个函数的测量时间来最小化求解时间。在NVIDIA Tesla M2090、K20 X和GeForce GTX TITAN X上进行的真实粒子分布性能测量结果表明,与共享时间步长相比,分层时间步长实现了约3- 5倍的加速。当粒子分布分别代表仙女座星系或NFW球时,在GTX TITAN X上测量到的\texttt{GOTHIC}每步经过的时间为0.30 s或0.44 s,其中$2^{24} =$约为16,777,216个粒子。代码的平均性能相当于GPU理论单精度峰值性能的10- 30%。
英文摘要:
The tree method is a widely implemented algorithm for collisionless $N$-body simulations in astrophysics well suited for GPU(s). Adopting hierarchical time stepping can accelerate $N$-body simulations; however, it is infrequently implemented and its potential remains untested in GPU implementations. We have developed a Gravitational Oct-Tree code accelerated by HIerarchical time step Controlling named \texttt{GOTHIC}, which adopts both the tree method and the hierarchical time step. The code adopts some adaptive optimizations by monitoring the execution time of each function on-the-fly and minimizes the time-to-solution by balancing the measured time of multiple functions. Results of performance measurements with realistic particle distribution performed on NVIDIA Tesla M2090, K20X, and GeForce GTX TITAN X, which are representative GPUs of the Fermi, Kepler, and Maxwell generation of GPUs, show that the hierarchical time step achieves a speedup by a factor of around 3--5 times compared to the shared time step. The measured elapsed time per step of \texttt{GOTHIC} is 0.30~s or 0.44~s on GTX TITAN X when the particle distribution represents the Andromeda galaxy or the NFW sphere, respectively, with $2^{24} =$~16,777,216 particles. The averaged performance of the code corresponds to 10--30\% of the theoretical single precision peak performance of the GPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。