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.
A novel algorithm for GPU-accelerated particle-mesh interactions implemented in the QUOKKA code
Research School of Astronomy and Astrophysics, Australian National University(澳大利亚国立大学天文与天体物理研究学院);Department of Physics and Astronomy, Michigan State University(密歇根州立大学物理与天文学系);Shanghai Astronomical Observatory, Chinese Academy of Sciences(中国科学院上海天文台)
gevolution 2.0: GPU-accelerated relativistic N-body simulations for cosmology
Institut für Teilchen- und Astrophysik, ETH Zürich(苏黎世联邦理工学院粒子与天体物理研究所);Institut für Astrophysik, Universität Zürich(苏黎世大学天体物理研究所);Département de Physique Théorique, Université de Genève(日内瓦大学理论物理系);CEICO, Institute of Physics of the Czech Academy of Sciences(捷克科学院物理研究所CEICO)
DISCO-DJ II: a differentiable particle-mesh code for cosmology
University of Vienna(维也纳大学);Department of Astrophysics, Türkenschanzstraße 17, 1180 Vienna, Austria(天体物理系);Department of Mathematics, Oskar-Morgenstern-Platz 1, 1090 Vienna, Austria(数学系)
GRaM-X: A new GPU-accelerated dynamical spacetime GRMHD code for Exascale computing with the Einstein Toolkit
Anton Pannekoek Institute for Astronomy and GRAPPA, University of Amsterdam(阿姆斯特丹大学安东·潘内库克天文学研究所与GRAPPA);Institute of High-Energy Physics, University of Amsterdam(阿姆斯特丹大学高能物理研究所);Center for Computation & Technology, Louisiana State University(路易斯安那州立大学计算与技术中心);National Center for Supercomputing applications, University of Illinois(伊利诺伊大学国家超级计算应用中心);Department of Physics, University of Illinois(伊利诺伊大学物理系);Perimeter Institute for Theoretical Physics(理论物理学珀利默研究所);Department of Physics and Astronomy, University of Waterloo(滑铁卢大学物理与天文系);University of Waterloo(滑铁卢大学);University of Amsterdam(阿姆斯特丹大学)
CRUX: A topology-aware load balancer for mesh-based fluid dynamics codes on GPU clusters
Center for Relativistic Astrophysics, Georgia Institute of Technology(佐治亚理工学院相对论天体物理中心);H. Milton Stewart School of Industrial & Systems Engineering, Georgia Institute of Technology(佐治亚理工学院H.米尔顿·斯图尔特工业与系统工程学校)
Parthenon -- a performance portable block-structured adaptive mesh refinement framework
在通往亿万级的道路上,计算机设备架构和相应的编程模型的前景变得更加多样化。虽然有各种低级别的性能可移植编程模型,但在应用程序级别上缺乏支持。为了解决这个问题,我们提出了性能便携式块结构自适应网格细化(AMR)框架帕台农神庙,来自经过测试和广泛使用的雅典娜++天体物理磁流体动力学代码,但广义作为基础的各种下游多物理场代码。Parthenon采用了Kokkos编程模型,并提供了从多维变量到定义和分离组件的包,再到启动并行计算内核的各种级别的抽象。Parthenon在设备内存中分配所有数据以减少数据移动,支持变量和网格块的逻辑打包以减少内核启动开销,并采用单侧异步MPI调用以减少多节点模拟中的通信开销。使用流体力学迷你应用程序,我们展示了各种架构上的弱和强扩展,包括AMD和NVIDIA GPU,Intel和AMD x86 CPU,IBM Power 9 CPU以及Fujitsu A64 FX CPU。在Frontier上的最大规模(第一台TOP500 exascale机器),miniapp在9,216个节点(73,728个逻辑GPU)上达到了$1.7\times10^{13}$区域周期/秒,弱扩展并行效率约为92%(从单个节点开始)。再加上它是一个开放的协作项目,这使得Parthenon成为一个理想的框架,以针对亿级模拟,其中下游开发人员可以专注于他们的特定应用,而不是处理并行,设备加速…