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.
Mon 27 FebDisplayed time zone: Eastern Time (US & Canada) change
10:00 - 12:00 | Session 1 -- It's all about loops!Main Conference at Montreal 1-2-3 Chair(s): Rodrigo C. O. Rocha University of Edinburgh | ||
10:00 26mTalk | Code Generation for In-Place Stencils Main Conference Mohamed Essadki ONERA, Bertrand Michel ONERA, Bruno Maugars ONERA, Oleksandr Zinenko Google, Nicolas Vasilache Google, Albert Cohen Google DOI | ||
10:26 26mTalk | To Pack or Not to Pack: A Generalized Packing Analysis and Transformation Main Conference Caio Salvador Rohwedder University of Alberta, Nathan Henderson University of Alberta, João P. L. De Carvalho University of Alberta, Yufei Chen University of Alberta, Jose Nelson Amaral University of Alberta DOI | ||
10:52 26mTalk | Code Synthesis for Sparse Tensor Format Conversion and Optimization Main Conference Tobi Popoola Boise State University, Tuowen Zhao University of Utah, Aaron St. George Boise State University, Kalyan Bhetwal Boise State University, Michelle Strout University of Arizona, Mary Hall University of Utah, Catherine R. M. Olschanowsky Boise State University DOI | ||
11:18 26mTalk | Looplets: A Language for Structured Coiteration Main Conference Willow Ahrens Massachusetts Institute of Technology, Daniel Donenfeld Massachusetts Institute of Technology, Fredrik Kjolstad Stanford University, Saman Amarasinghe Massachusetts Institute of Technology DOI |