arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.14030gr-qcphysics.comp-ph
收藏

利用代码生成加速数值相对论:支持CUDA的双曲松弛方法

Accelerating Numerical Relativity with Code Generation: CUDA-enabled Hyperbolic Relaxation

Samuel D. Tootle, Leonardo R. Werneck, Thiago Assumpção, Terrence Pierre Jacques, Zachariah B. Etienne

AI总结:

针对数值相对论代码未能充分利用GPU性能、难以满足下一代引力波探测器对高精度大规模引力波星表需求的问题,研究扩展NRPy框架开发出首款GPU支持的椭圆求解器NRPyEllipticGPU,实现显著性能提升,为开发CUDA优化的数值相对论代码提供参考。

摘要:

下一代引力波探测器,如Cosmic Explorer(宇宙探索者)、Einstein Telescope(爱因斯坦望远镜)和LISA(激光干涉空间天线),需要高精度且规模庞大的引力波(GW)星表,以从观测信号中可靠地提取物理参数。然而,数值相对论(NR)在现代计算机上以所需的规模和精度生成这些星表面临重大挑战,因为NR代码未能充分利用现代GPU的性能。为此,我们扩展了基于Python的NR代码生成框架NRPy,开发出NRPyEllipticGPU——一款针对双黑洞(BBH)初值问题定制的CUDA优化椭圆求解器。NRPyEllipticGPU是NR领域首款支持GPU的椭圆求解器,支持多种坐标系,在消费级和高性能计算(HPC)级GPU上均展现出显著的性能提升。我们的研究表明,与高端CPU相比,NRPyEllipticGPU在高端GPU上的单精度性能最高可实现16倍加速,双精度性能提升2至4倍。这一性能提升借助GPU卓越的并行性和内存带宽实现了计算受限型应用,并提高了整体模拟效率。由于NRPyEllipticGPU共享NR代码通用的核心基础设施,这项工作可为开发完整的CUDA优化NR代码提供实用指南。

英文摘要:

Next-generation gravitational wave detectors such as Cosmic Explorer, the Einstein Telescope, and LISA, demand highly accurate and extensive gravitational wave (GW) catalogs to faithfully extract physical parameters from observed signals. However, numerical relativity (NR) faces significant challenges in generating these catalogs at the required scale and accuracy on modern computers, as NR codes do not fully exploit modern GPU capabilities. In response, we extend NRPy, a Python-based NR code-generation framework, to develop NRPyEllipticGPU -- a CUDA-optimized elliptic solver tailored for the binary black hole (BBH) initial data problem. NRPyEllipticGPU is the first GPU-enabled elliptic solver in the NR community, supporting a variety of coordinate systems and demonstrating substantial performance improvements on both consumer-grade and HPC-grade GPUs. We show that, when compared to a high-end CPU, NRPyEllipticGPU achieves on a high-end GPU up to a sixteenfold speedup in single precision while increasing double-precision performance by a factor of 2--4. This performance boost leverages the GPU's superior parallelism and memory bandwidth to achieve a compute-bound application and enhancing the overall simulation efficiency. As NRPyEllipticGPU shares the core infrastructure common to NR codes, this work serves as a practical guide for developing full, CUDA-optimized NR codes.

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

↑