arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.20917cs.MScs.NAmath.NAphysics.comp-ph
收藏

NektarIR:面向异构硬件上高阶有限元操作的领域专用编译器

NektarIR: A Domain-Specific Compiler for High-Order Finite Element Operations on Heterogeneous Hardware

King’s College London(伦敦国王学院);Swiss National Supercomputing Centre (CSCS), ETH Zurich(瑞士国家超级计算中心(CSCS),苏黎世联邦理工学院);Computing Systems Lab, Huawei Zurich Research Center(华为苏黎世研究中心计算系统实验室)

Edward Erasmie-Jones, Giacomo Castiglioni, David Moxey

AI总结:

本文提出基于MLIR的领域专用编译器NektarIR,通过多级中间表示将高阶有限元操作高效编译到CPU和GPU,并在Nektar++框架上验证性能。

摘要:

现代高性能计算(HPC)应用必须面向异构硬件。这需要大量工作来确保领域特定的实现能够转化为跨多种硬件类型和供应商的高性能内核,每种硬件都需要定制优化以利用特定目标架构。通过使用多级中间表示(MLIR)项目构建领域专用编译器,可以表达接近特定领域的高级抽象,并逐步降低到接近底层的低级抽象。在每个中间表示(IR)级别,由于领域特定IR中嵌入的知识,可以在无需昂贵分析的情况下应用适当的优化。我们将此方法应用于构建离散微分算子,用于计算流体动力学(CFD)中的谱/hp元方法求解器。在这里,性能由一组常见的有限元算子驱动,这些算子组合成用于求解弱偏微分方程的离散微分算子的内核。我们创建了自己的MLIR方言来表示这些算子,并实现了一个定制的降低管道,以促进这些内核在CPU和GPU架构上的即时编译,并与Nektar++谱/hp元框架进行性能比较。

英文摘要:

Modern high performance computing (HPC) applications must target heterogeneous hardware. This requires significant work to ensure domain specific implementations translate to highly performant kernels across a range hardware types and vendors, each requiring bespoke optimization to make use of the specific target architecture. Through the development of a domain specific compiler built with the multi-level intermediate representations (MLIR) project, one can express a high-level, close to the specific domain, abstraction that is progressively lowered to a low, close to metal, abstraction. At each intermediate representation (IR), appropriate optimizations can be applied without costly analysis due to the knowledge embedded in the domain specific IRs. We apply this method to the construction of discrete differential operators for use in spectral/hp element method solvers for computational fluid dynamics (CFD). Here, the performance is driven by a small set of common finite element operators that are composed to create kernels for the discrete differential operators used to solve weak partial differential equations. We create our own MLIR dialect to represent these operators and implement a bespoke lowering pipeline to facilitate the just-in-time compilation of these kernels for both CPU and GPU architecture and illustrate performance comparisons with the Nektar++ spectral/hp element framework.

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

↑