arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.18261astro-ph.IMastro-ph.GA
收藏

一种用于QUOKKA代码中的GPU加速粒子-网格相互作用的新算法

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(中国科学院上海天文台)

Chong-Chong He, Benjamin D. Wibking, Aditi Vijayan, Mark R. Krumholz, Pak Shing Li

AI总结:

本文提出一种基于GPU的新型算法,用于网格基流体动力学模拟中的粒子-网格相互作用,通过改进的粒子-网格-粒子方案实现高效并行计算,验证了其在星系星形成和反馈模拟中的可扩展性。

摘要:

我们提出了一种新的、针对GPU优化的算法,用于网格基流体动力学模拟中的粒子-网格相互作用,适用于大规模并行架构。该方法通过使用新的“粒子-网格-粒子”相互作用方案克服了多个GPU节点上粒子邻居搜索或排序的低效问题,该方案扩展了用于自引力的粒子-网格方法。该算法分为两个主要阶段:首先,粒子和网格之间交换的量(如由恒星反馈添加的质量、能量和动量,或通过吸积去除的量)被沉积到配备鬼区的缓冲网格中,其中每个单元格的多重贡献通过原子加法累积,然后在分布式内存排名中进行通信。在第二阶段,缓冲状态应用于真实网格状态,通过单元格级限制器强制执行物理约束,如正密度。我们将在GPU原生辐射磁流体动力学代码QUOKKA中实现该方案,并通过包括Bondi和Bondi-Hoyle吸积以及不同空间分辨率下的单个和多个超新星残骸演化的全面测试集来验证其有效性。我们展示了该算法在Frontier超级计算机上运行至8192个GPU时,可实现约50%的弱扩展效率。该方案为GPU优化的星系星形成和反馈模拟中的高效、可扩展的粒子-网格耦合提供了可能。

英文摘要:

We present a novel, GPU-optimized algorithm for particle-mesh interactions in grid-based hydrodynamics simulations, designed for massively parallel architectures. This approach overcomes the inefficiency of particle neighbour searches or sorts across multiple GPU nodes by using a new "particle-mesh-particle" interaction scheme, which extends the particle-mesh method for self-gravity. The algorithm proceeds in two main stages: first, quantities exchanged between particles and the mesh -- such as mass, energy, and momentum added by stellar feedback or removed by accretion onto a sink -- are deposited into a buffer mesh equipped with ghost zones, where multiple contributions per cell are accumulated using atomic additions and then communicated across distributed memory ranks. In the second stage, the buffer states are applied to real mesh states, incorporating cell-wise limiters to enforce physical constraints such as positive density. We implement this scheme in the GPU-native radiation-magnetohydrodynamics code QUOKKA and validate it through a comprehensive suite of tests, including Bondi and Bondi-Hoyle accretion, and single and multiple supernova remnant evolution at varying spatial resolutions. We show that the algorithm achieves $\approx 50\%$ weak-scaling efficiency running on up to 8192 GPUs on the Frontier supercomputer. This scheme enables efficient, scalable particle-mesh coupling for GPU-optimized simulations of star formation and feedback in galaxies.

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

↑