Code Generation for In-Place Stencils
Code Generation for In-Place Stencils
复制标题
就地模板的代码生成
DOI:
--
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Albert Cohen
中科院分区:
文献类型:
--
作者:
M. Essadki;B. Michel;B. Maugars;O. Zinenko;Nicolas Vasilache;Albert Cohen
Numerical simulation often resorts to iterative in-place stencils such as the Gauss-Seidel or Successive Overrelaxation (SOR) methods. Writing high performance implementations of such stencils requires significant effort and time; it also involves non-local transformations beyond the stencil kernel itself. While automated code generation is a mature technology for image processing stencils, convolutions and out-of-place iterative stencils (such as the Jacobi method), the optimization of in-place stencils requires manual craftsmanship. Building on recent advances in tensor compiler construction, we propose the first domain-specific code generator for iterative in-place stencils. Starting from a generic tensor compiler implemented in the MLIR framework, tensor abstractions are incrementally refined and lowered down to parallel, tiled, fused and vectorized code. We used our generator to implement a realistic, implicit solver for structured meshes, and demonstrate results competitive with an industrial computational fluid dynamics framework. We also compare with stand-alone stencil kernels for dense tensors.
DOI:
10.1145/3445814.3446692
发表时间:
2021-04
期刊:
Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems
影响因子:
--
作者:
Yishen Chen;Charith Mendis;Michael Carbin;Saman P. Amarasinghe
通讯作者:
Yishen Chen;Charith Mendis;Michael Carbin;Saman P. Amarasinghe