arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0907.3390astro-ph.IMastro-ph.CO
收藏

GAMER:一个GPU加速的天体物理网格自适应加密程序

GAMER: a GPU-Accelerated Adaptive Mesh Refinement Code for Astrophysics

Hsi-Yu Schive, Yu-Chih Tsai, Tzihong Chiueh

摘要:

我们提出了新开发的代码,GAMER(GPU加速自适应网格细化代码),它采用了一种新的方法,以提高性能的自适应网格细化(AMR)天体物理模拟的一个很大的因素与使用的图形处理单元(GPU)。AMR的实现是基于一个层次结构的网格补丁与八叉树数据结构。我们采用三维松弛TVD格式的流体动力学求解器,和一个多级松弛格式的泊松求解器。这两个求解器已在GPU上实现,通过它可以并行推进数百个补丁。该算法利用GPU的异步内存复制功能,减少了CPU和GPU之间数据传输的计算开销,并通过与GPU计算重叠,减少了每个分片的重影区域值的计算时间。我们证明的准确性的代码进行几个标准的测试问题,天体物理学。GAMER是一个可以在多GPU集群系统中运行的并行代码。我们通过在不同的硬件实现中执行纯重子宇宙学模拟来测量代码的性能,其中详细的时序分析提供了具有和不具有GPU加速的计算之间的比较。使用1个有效分辨率为4096^3的GPU和16个有效分辨率为8192^3的GPU时,最大加速因子分别为12.19和10.47。

英文摘要:

We present the newly developed code, GAMER (GPU-accelerated Adaptive MEsh Refinement code), which has adopted a novel approach to improve the performance of adaptive mesh refinement (AMR) astrophysical simulations by a large factor with the use of the graphic processing unit (GPU). The AMR implementation is based on a hierarchy of grid patches with an oct-tree data structure. We adopt a three-dimensional relaxing TVD scheme for the hydrodynamic solver, and a multi-level relaxation scheme for the Poisson solver. Both solvers have been implemented in GPU, by which hundreds of patches can be advanced in parallel. The computational overhead associated with the data transfer between CPU and GPU is carefully reduced by utilizing the capability of asynchronous memory copies in GPU, and the computing time of the ghost-zone values for each patch is made to diminish by overlapping it with the GPU computations. We demonstrate the accuracy of the code by performing several standard test problems in astrophysics. GAMER is a parallel code that can be run in a multi-GPU cluster system. We measure the performance of the code by performing purely-baryonic cosmological simulations in different hardware implementations, in which detailed timing analyses provide comparison between the computations with and without GPU(s) acceleration. Maximum speed-up factors of 12.19 and 10.47 are demonstrated using 1 GPU with 4096^3 effective resolution and 16 GPUs with 8192^3 effective resolution, respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑