Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Domain-Specific Multi-Level IR Rewriting for GPU (2005.13014v2)

Published 26 May 2020 in cs.PL

Abstract: Traditional compilers operate on a single generic intermediate representation (IR). These IRs are usually low-level and close to machine instructions. As a result, optimizations relying on domain-specific information are either not possible or require complex analysis to recover the missing information. In contrast, multi-level rewriting instantiates a hierarchy of dialects (IRs), lowers programs level-by-level, and performs code transformations at the most suitable level. We demonstrate the effectiveness of this approach for the weather and climate domain. In particular, we develop a prototype compiler and design stencil- and GPU-specific dialects based on a set of newly introduced design principles. We find that two domain-specific optimizations (500 lines of code) realized on top of LLVM's extensible MLIR compiler infrastructure suffice to outperform state-of-the-art solutions. In essence, multi-level rewriting promises to herald the age of specialized compilers composed from domain- and target-specific dialects implemented on top of a shared infrastructure.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (9)
  1. Tobias Gysi (4 papers)
  2. Christoph Müller (20 papers)
  3. Oleksandr Zinenko (8 papers)
  4. Stephan Herhut (2 papers)
  5. Eddie Davis (2 papers)
  6. Tobias Wicky (3 papers)
  7. Oliver Fuhrer (5 papers)
  8. Torsten Hoefler (203 papers)
  9. Tobias Grosser (21 papers)
Citations (45)