K-Athena:高性能可移植结构网格有限体积磁流体动力学程序
K-Athena: a performance portable structured grid finite volume magnetohydrodynamics code
摘要:
大规模模拟是现代研究的关键支柱,需要不断增加的计算资源。近年来,在迈向百亿亿次时代的道路上,出现了各种新颖的众核架构。性能可移植性是防止代码在不同架构下重复重构的必要条件。我们结合雅典娜++,现有的磁流体动力学(MHD)CPU代码,与Kokkos,性能便携式节点上并行编程范式,到K-Athena允许使用一个单一的代码库在多个架构上进行有效的模拟。我们展示了针对不同平台的分析和扩展结果,包括英特尔Skylake CPU、英特尔至强Phis和NVIDIA GPU。K-Athena在单个V100 GPU上实现了$>10^8$单元更新/秒,用于二阶双精度的MHD计算,并在Summit上的多达24,576个GPU上实现了30的加速比(与172,032个CPU核心相比),达到了$1.94\times10^{12}$总单元更新/秒,并行效率为76%。使用屋顶线分析,我们证明了整体性能目前受到DRAM带宽的限制,并计算出62.8%的性能可移植性指标。最后,我们提出的实施策略和遇到的挑战,最大限度地提高性能。这将为其他研究小组提供一种直接的方法来准备他们自己的exascale时代的代码。K-Athena可在https://gitlab.com/pgrete/kathena上获得。
英文摘要:
Large scale simulations are a key pillar of modern research and require ever-increasing computational resources. Different novel manycore architectures have emerged in recent years on the way towards the exascale era. Performance portability is required to prevent repeated non-trivial refactoring of a code for different architectures. We combine Athena++, an existing magnetohydrodynamics (MHD) CPU code, with Kokkos, a performance portable on-node parallel programming paradigm, into K-Athena to allow efficient simulations on multiple architectures using a single codebase. We present profiling and scaling results for different platforms including Intel Skylake CPUs, Intel Xeon Phis, and NVIDIA GPUs. K-Athena achieves $>10^8$ cell-updates/s on a single V100 GPU for second-order double precision MHD calculations, and a speedup of 30 on up to 24,576 GPUs on Summit (compared to 172,032 CPU cores), reaching $1.94\times10^{12}$ total cell-updates/s at 76% parallel efficiency. Using a roofline analysis we demonstrate that the overall performance is currently limited by DRAM bandwidth and calculate a performance portability metric of 62.8%. Finally, we present the implementation strategies used and the challenges encountered in maximizing performance. This will provide other research groups with a straightforward approach to prepare their own codes for the exascale era. K-Athena is available at https://gitlab.com/pgrete/kathena .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。