arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.24286physics.comp-ph
收藏

Pyrometheus:用于XPU及燃烧动力学与热力学自动微分计算的符号抽象

Pyrometheus: Symbolic abstractions for XPU and automatically differentiated computation of combustion kinetics and thermodynamics

Esteban Cisneros-Garibay, Henry Le Berre, Dimitrios Adam, Spencer H. Bryngelson, Jonathan B. Freund

AI总结:

针对燃烧模拟热化学评估成本高且难移植XPU的问题,提出符号抽象软件包Pyrometheus,支持多语言代码生成、加速器计算与自动微分,并在MFC求解器中验证了高性能。

摘要:

燃烧模拟的成本通常由化学物质净生成率和混合物热力学(热化学)的评估主导。在图形处理器(GPU)等计算加速器(XPU)上执行可以大大降低这一成本。然而,现有的热化学软件不易移植到此类设备上,或者会牺牲有价值的解析形式,而这些解析形式能够为敏感性分析和隐式时间积分提供微分。本文开发了符号抽象及相应的变换,通过避免过早指定细节,实现了在加速器上的计算和自动微分。软件包Pyrometheus作为这些抽象及其变换在燃烧热化学上的实现被引入。该公式促进了从特定热化学机制的符号表示生成多种目标语言的代码,包括Python、C++和Fortran。计算关注点被分离:生成的代码处理数组值表达式,但不指定其语义。这些语义由兼容的数组库提供,如NumPy、Pytato和Google JAX。因此,生成的代码保留了热化学的符号表示,这转化为在加速器和CPU上的计算以及自动微分。本文贯穿讨论了这些符号抽象及其配套工具Pyrometheus的设计和操作。Roofline演示表明,在MFC(我们与Pyrometheus链接的基于Fortran的流求解器)内计算化学源项具有高性能。

英文摘要:

The cost of combustion simulations is often dominated by the evaluation of net production rates of chemical species and mixture thermodynamics (thermochemistry). Execution on computing accelerators (XPUs) like graphic processing units (GPUs) can greatly reduce this cost. However, established thermochemistry software is not readily portable to such devices or sacrifices valuable analytical forms that enable differentiation for sensitivity analysis and implicit time integration. Symbolic abstractions are developed with corresponding transformations that enable computation on accelerators and automatic differentiation by avoiding premature specification of detail. The software package Pyrometheus is introduced as an implementation of these abstractions and their transformations for combustion thermochemistry. The formulation facilitates code generation from the symbolic representation of a specific thermochemical mechanism in multiple target languages, including Python, C++, and Fortran. Computational concerns are separated: the generated code processes array-valued expressions but does not specify their semantics. These semantics are provided by compatible array libraries, such as NumPy, Pytato, and Google JAX. Thus, the generated code retains a symbolic representation of the thermochemistry, which translates to computation on accelerators and CPUs and automatic differentiation. The design and operation of these symbolic abstractions and their companion tool, Pyrometheus, are discussed throughout. Roofline demonstrations show that the computation of chemical source terms within MFC, a Fortran-based flow solver we link to Pyrometheus, is performant.

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

↑