cuRAMSES:面向大规模宇宙学模拟的可扩展AMR优化
cuRAMSES: Scalable AMR Optimizations for Large-Scale Cosmological Simulations
AI总结:
针对RAMSES自适应网格细化代码,提出递归k段域分解、Morton键哈希表、空间哈希分箱等优化策略,显著提升强扩展性、降低内存占用并加速反馈例程,同时实现GPU加速。
摘要:
我们提出cuRAMSES,一套针对ramses自适应网格细化(AMR)代码的先进域分解策略和算法优化,旨在克服大规模宇宙学模拟中固有的通信、内存和求解器瓶颈。核心创新是用递归k段域分解替代传统的希尔伯特曲线排序,采用层次化空间划分。该方法将全局全对全通信替换为仅邻居的点对点通信。通过保持恒定数量的通信伙伴(与总进程数无关),显著提高了高并发下的强扩展性。为解决大规模下的关键内存约束,我们引入了用于八叉树邻居查找的Morton键哈希表以及按需数组分配,大幅降低了每进程内存占用。此外,在盒型局部域中采用一种新颖的空间哈希分箱算法,将超新星和AGN反馈例程加速超过两个数量级(约260倍)。针对混合架构,实现并基准测试了带有GPU驻留网格数据的自动CPU/GPU调度模型。多重网格泊松求解器在H100和A100 GPU上实现了1.7倍的GPU加速,尽管Godunov求解器目前受限于PCIe带宽。在当前的PCIe连接硬件上净提升约20%,性能模型预测在紧密耦合架构(如NVIDIA GH200)上可提升约2倍。此外,可变Nrank重启功能实现了灵活的I/O工作流。大量诊断验证所有修改均保持质量、动量和能量守恒,与参考希尔伯特排序运行相比,总能量诊断偏差在0.5%以内。
英文摘要:
We present cuRAMSES, a suite of advanced domain decomposition strategies and algorithmic optimizations for the ramses adaptive mesh refinement (AMR) code, designed to overcome the communication, memory, and solver bottlenecks inherent in massive cosmological simulations. The central innovation is a recursive k-section domain decomposition that replaces the traditional Hilbert curve ordering with a hierarchical spatial partitioning. This approach substitutes global all-to-all communications with neighbour-only point-to-point communications. By maintaining a constant number of communication partners regardless of the total rank count, it significantly improves strong scaling at high concurrency. To address critical memory constraints at scale, we introduce a Morton-key hash table for octree-neighbour lookup alongside on-demand array allocation, drastically reducing the per-rank memory footprint. Furthermore, a novel spatial hash-binning algorithm in box-type local domains accelerates supernova and AGN feedback routines by over two orders of magnitude (an about 260 times speedup). For hybrid architectures, an automatic CPU/GPU dispatch model with GPU-resident mesh data is implemented and benchmarked. The multigrid Poisson solver achieves a 1.7 times GPU speedup on H100 and A100 GPUs, although the Godunov solver is currently PCIe-bandwidth-limited. The net improvement is about 20 per cent on current PCIe-connected hardware, and a performance model predicts about 2 times on tightly coupled architectures such as the NVIDIA GH200. Additionally, a variable-Nrank restart capability enables flexible I/O workflows. Extensive diagnostics verify that all modifications preserve mass, momentum, and energy conservation, matching the reference Hilbert-ordering run to within 0.5 per cent in the total energy diagnostic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。