面向可压缩流模拟中自适应网格细化的基于任务编程
Task-Based Programming for Adaptive Mesh Refinement in Compressible Flow Simulations
AI总结:
本工作使用Regent语言实现基于AMR的可压缩流求解器,通过任务融合和自动GPU内核生成分别获得18倍和9.7倍加速,并在欧拉方程模拟中验证了有效性。
摘要:
可压缩流的高阶求解器在科学应用中至关重要。自适应网格细化(AMR)是一种通过将分辨率集中在感兴趣区域来降低计算成本的关键技术。在本工作中,我们使用Regent(一种用于Legion编程模型的高级编程语言)开发了基于AMR的数值求解器。我们解决了在Regent中实现AMR相关的若干挑战,包括用于网格细化/粗化的动态数据结构、网格有效性强制以及通过任务融合减少任务启动开销。实验结果表明,任务融合实现了18倍加速,而通过简单注释自动生成GPU内核使目标内核获得9.7倍加速。我们通过模拟由欧拉方程控制的两个典型可压缩流问题来展示我们的方法。
英文摘要:
High-order solvers for compressible flows are vital in scientific applications. Adaptive mesh refinement (AMR) is a key technique for reducing computational cost by concentrating resolution in regions of interest. In this work, we develop an AMR-based numerical solver using Regent, a high-level programming language for the Legion programming model. We address several challenges associated with implementing AMR in Regent. These include dynamic data structures for patch refinement/coarsening, mesh validity enforcement, and reducing task launch overhead via task fusion. Experimental results show that task fusion achieves 18x speedup, while automated GPU kernel generation via simple annotations yields 9.7x speedup for the targeted kernel. We demonstrate our approach through simulations of two canonical compressible flow problems governed by the Euler equations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。