arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1705.03667cs.MScs.NAmath.NA
收藏

TSFC:一种保持结构的形式编译器

TSFC: a structure-preserving form compiler

Imperial College London(帝国理工学院)

Miklós Homolya, Lawrence Mitchell, Fabio Luporini, David A. Ham

AI总结:

TSFC是一种新形式编译器,旨在尽可能保持输入表达式的结构,从而在最高抽象层次应用优化,通过两阶段方法分离有限元构造到张量代数和张量操作调度,提升编译性能。

摘要:

形式编译器将偏微分方程的弱形式高级描述转换为执行有限元组装的低级代码。本文介绍了Two-Stage Form Compiler (TSFC),其主要动机是尽可能保持输入表达式的结构。这使得可以在最高可能的抽象层次应用优化。TSFC具有新颖的、保持结构的方法,用于分离形式对不连续伽辽金问题局部张量子块的贡献。这使我们能够在编译过程中更长时间地保持表达式的张量结构。这在部分通过两阶段方法实现,该方法清晰地将有限元构造降低到张量代数的第一阶段,与第二阶段的张量操作调度分离。TSFC还高效地遍历复杂表达式,并通过实验评估证明了即使对于高度复杂的形式,编译时间性能也很好。

英文摘要:

A form compiler takes a high-level description of the weak form of partial differential equations and produces low-level code that carries out the finite element assembly. In this paper we present the Two-Stage Form Compiler (TSFC), a new form compiler with the main motivation to maintain the structure of the input expression as long as possible. This facilitates the application of optimizations at the highest possible level of abstraction. TSFC features a novel, structure-preserving method for separating the contributions of a form to the subblocks of the local tensor in discontinuous Galerkin problems. This enables us to preserve the tensor structure of expressions longer through the compilation process than other form compilers. This is also achieved in part by a two-stage approach that cleanly separates the lowering of finite element constructs to tensor algebra in the first stage, from the scheduling of those tensor operations in the second stage. TSFC also efficiently traverses complicated expressions, and experimental evaluation demonstrates good compile-time performance even for highly complex forms.

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

↑