Skip to main navigation Skip to search Skip to main content

Optimizing Data Reshaping Operations in Functional IRs for High-Level Synthesis

  • Christof Schlaak
  • , Tzung-Han Juang
  • , Christophe Dubach

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution

Abstract

FPGAs (Field Programmable Gate Arrays) have become the substrate of choice to implement accelerators. They deliver high performance with low power consumption, while offering the flexibility of being re-programmable. But they are notoriously hard to program directly using HDLs (Hardware Description Languages). Traditional HLS (High-Level Synthesis) methods are addressing some of these issues but are far from being perfect. Programmers are still required to write hardware-specific code and existing HLS tools often produce sub-optimal designs.

Modern approaches based on multi-level functional IR (Intermediate Representation) such as Aetherling, have demonstrated the advantages of generating high performance designs in a predictable way. A functional IR makes optimizations via rewrite rules simple to express, and abstract away the hardware details. However, as we will see in this paper, functional approaches bring their own set of challenges to produce high performance hardware. In particular, data reshaping operations, such as transposition, introduce overheads that hurt performance or even prevent the generation of synthesizable hardware designs altogether.

This paper presents an approach with rewrite rules to solve this fundamental issue and produce efficient FPGA designs from functional IRs. Using rewrites, it is possible to generate high performance designs for matrix multiplication and 2D convolution. The paper also evaluates the performance impact of the optimizations and shows that without them, low performance designs are produced, or even worse, it is impossible to synthesize the designs at all.
Original languageEnglish
Title of host publicationProceedings of the 23rd ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems
EditorsTobias Grosser, Kyoungwoo Lee
Place of PublicationNew York, NY, USA
PublisherACM Association for Computing Machinery
Pages61-72
Number of pages12
ISBN (Print)978-1-4503-9266-2
DOIs
Publication statusPublished - 14 Jun 2022
Event23rd ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems - San Diego, United States
Duration: 14 Jun 2022 → 14 Jun 2022
https://pldi22.sigplan.org/track/LCTES-2022

Conference

Conference23rd ACM SIGPLAN/SIGBED International Conference on Languages, Compilers, and Tools for Embedded Systems
Abbreviated titleLCTES 2022
Country/TerritoryUnited States
CitySan Diego
Period14/06/22 → 14/06/22
Internet address

Keywords / Materials (for Non-textual outputs)

  • High-level synthesis
  • functional IR
  • rewrite rules
  • compilers

Fingerprint

Dive into the research topics of 'Optimizing Data Reshaping Operations in Functional IRs for High-Level Synthesis'. Together they form a unique fingerprint.

Cite this