superB/NRPy:面向第三代引力波科学的可扩展、基于任务的数值相对论
superB/NRPy: Scalable, Task-Based Numerical Relativity for 3G Gravitational Wave Science
AI总结:
本文提出 NRPy 开源扩展 superB,将 BH@H 模块自动生成为基于任务的分布式 Charm++ 代码,实现逐位一致、双黑洞验证及64节点约45倍加速。
摘要:
现代引力波科学需要越来越精确且计算密集的数值相对论(NR)模拟。基于 Python 的开源 NRPy 框架可为 NR 生成优化的 C/C++ 代码,其中包括完整的 NR 代码 BlackHoles@Home(BH@H),该代码利用了非常适合许多天体物理场景的曲线坐标。从历史上看,BH@H 一直局限于单节点 OpenMP CPU 并行。为解决这一问题,我们引入了 superB,这是 NRPy 的一个开源扩展,能够从现有 BH@H 模块自动生成可扩展的、基于任务的分布式内存 Charm++ 代码。生成的代码对 NRPy/BH@H 使用的结构化网格进行分区,并管理它们之间的通信。其正确性通过两种方式得到验证:在单节点上与标准 OpenMP 版本获得逐位相同的结果,以及在类圆柱坐标中进行正面双黑洞模拟,准确再现了准正常模式(最高至 ℓ=8)。superB/NRPy 生成的代码展现出出色的强可扩展性:对于一个大型三维真空测试,与原始单节点 OpenMP 代码相比,在 64 个节点(7168 个核心)上实现了约 45 倍加速。这一可扩展基础设施使高要求模拟受益,并为未来的多块网格支持奠定基础,目标是长时间旋进、极端参数研究和快速后续分析。该基础设施可轻松与其他基于 NRPy/BH@H 的项目集成,使广义相对论流体动力学代码 GRoovy 能够实现高性能扩展,并通过 NRPy-CUDA 项目促进未来与 GPU 加速的耦合。
英文摘要:
Modern gravitational-wave science demands increasingly accurate and computationally intensive numerical relativity (NR) simulations. The Python-based, open-source NRPy framework generates optimized C/C++ code for NR, including the complete NR code BlackHoles@Home (BH@H), which leverages curvilinear coordinates well-suited to many astrophysical scenarios. Historically, BH@H was limited to single-node OpenMP CPU parallelism. To address this, we introduce superB, an open-source extension to NRPy that enables automatic generation of scalable, task-based, distributed-memory Charm++ code from existing BH@H modules. The generated code partitions the structured grids used by NRPy/BH@H, managing communication between them. Its correctness is validated through bit-identical results with the standard OpenMP version on a single node and via a head-on binary black hole simulation in cylindrical-like coordinates, accurately reproducing quasi-normal modes (up to $\ell=8$). The superB/NRPy-generated code demonstrates excellent strong scaling, achieving an $\approx 45$x speedup on 64 nodes (7168 cores) compared to the original single-node OpenMP code for a large 3D vacuum test. This scalable infrastructure benefits demanding simulations and lays the groundwork for future multi-patch grid support, targeting long inspirals, extreme parameter studies, and rapid follow-ups. This infrastructure readily integrates with other NRPy/BH@H-based projects, enabling performant scaling for the general relativistic hydrodynamics code GRoovy, and facilitating future coupling with GPU acceleration via the NRPy-CUDA project.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。