arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1712.07070astro-ph.IMastro-ph.COastro-ph.GA
收藏

GAMER-2:GPU加速的自适应网格细化代码--准确性、性能和可扩展性

GAMER-2: a GPU-accelerated adaptive mesh refinement code -- accuracy, performance, and scalability

Hsi-Yu Schive, John A. ZuHone, Nathan J. Goldbaum, Matthew J. Turk, Massimo Gaspari, Chin-Yu Cheng

摘要:

我们提出了Gamer-2,一个GPU加速的自适应网格加密(AMR)的天体物理代码。它提供了一套丰富的功能,包括自适应时间步进,几个流体动力学方案,磁流体力学,自引力,粒子,恒星形成,化学和辐射过程与GRACKLE,数据分析与yt,和内存池有效的对象分配。Gamer-2是完全按位可再现的。在性能优化方面,采用了混合的OpenMP/MPI/GPU并行化,并利用了CPU计算、GPU计算和CPU-GPU通信的重叠。负载平衡是使用Hilbert空间填充曲线逐层实现的,而不需要在每个MPI进程上复制整个AMR层次结构。为了提供令人信服的演示的准确性和性能的Gamer-2,我们直接比较恩佐孤立盘星系模拟和与FLASH的星系团合并模拟。我们表明,通过不同的代码得到的物理结果是非常好的协议,和Gamer-2优于恩佐和FLASH的近一个和两个数量级,分别使用$1-256$节点的蓝水超级计算机。更重要的是,与其他两种代码相比,GAMER-2表现出类似甚至更好的并行可扩展性。我们还使用高达4096个GPU和65,536个CPU核心展示了良好的弱和强缩放,并实现了与$10{,}240^3$细胞一样高的统一分辨率。此外,GAMER-2可以作为AMR+ GPU框架,并已被广泛用于波暗物质($ψ$ DM)模拟。GAMER-2是开源的(可在https://github.com/gamer-project/gamer上获得),欢迎新的贡献。

英文摘要:

We present GAMER-2, a GPU-accelerated adaptive mesh refinement (AMR) code for astrophysics. It provides a rich set of features, including adaptive time-stepping, several hydrodynamic schemes, magnetohydrodynamics, self-gravity, particles, star formation, chemistry and radiative processes with GRACKLE, data analysis with yt, and memory pool for efficient object allocation. GAMER-2 is fully bitwise reproducible. For the performance optimization, it adopts hybrid OpenMP/MPI/GPU parallelization and utilizes overlapping CPU computation, GPU computation, and CPU-GPU communication. Load balancing is achieved using a Hilbert space-filling curve on a level-by-level basis without the need to duplicate the entire AMR hierarchy on each MPI process. To provide convincing demonstrations of the accuracy and performance of GAMER-2, we directly compare with Enzo on isolated disk galaxy simulations and with FLASH on galaxy cluster merger simulations. We show that the physical results obtained by different codes are in very good agreement, and GAMER-2 outperforms Enzo and FLASH by nearly one and two orders of magnitude, respectively, on the Blue Waters supercomputers using $1-256$ nodes. More importantly, GAMER-2 exhibits similar or even better parallel scalability compared to the other two codes. We also demonstrate good weak and strong scaling using up to 4096 GPUs and 65,536 CPU cores, and achieve a uniform resolution as high as $10{,}240^3$ cells. Furthermore, GAMER-2 can be adopted as an AMR+GPUs framework and has been extensively used for the wave dark matter ($ψ$DM) simulations. GAMER-2 is open source (available at https://github.com/gamer-project/gamer) and new contributions are welcome.

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

↑