Skip to main content
QUICK REVIEW

[Paper Review] ScaleHLS: Scalable High-Level Synthesis through MLIR

Hanchen Ye, Cong Hao|arXiv (Cornell University)|Jul 24, 2021
Parallel Computing and Optimization TechniquesComputer Science42 references8 citations
TL;DR

ScaleHLS proposes a next-generation High-Level Synthesis (HLS) flow built on MLIR's multi-level intermediate representation (IR) to enable scalable, customizable, and high-performance hardware design. By leveraging multi-abstraction-level optimization and an HLS-specific transform library, it achieves up to 768.1x and 3,825.0x improvements in performance over Vivado HLS on kernel and neural network workloads, respectively.

ABSTRACT

High-level Synthesis (HLS) has been widely adopted as it significantly improves the hardware design productivity and enables efficient design space exploration (DSE). HLS tools can be used to deliver solutions for many different kinds of design problems, which are often better solved with different levels of abstraction. While existing HLS tools are built using compiler infrastructures largely based on a single-level abstraction (e.g., LLVM), we propose ScaleHLS, a next-generation HLS compilation flow, on top of a multi-level compiler infrastructure called MLIR, for the first time. By using an intermediate representation (IR) that can be better tuned to particular algorithms at different representation levels, we are able to build this new HLS tool that is more scalable and customizable towards various applications coming with intrinsic structural or functional hierarchies. ScaleHLS is able to represent and optimize HLS designs at multiple levels of abstraction and provides an HLS-dedicated transform and analysis library to solve the optimization problems at the suitable representation levels. On top of the library, we also build an automated DSE engine to explore the multi-dimensional design space efficiently. In addition, we develop an HLS C front-end and a C/C++ emission back-end to translate HLS designs into/from MLIR for enabling the end-to-end ScaleHLS flow. Experimental results show that, comparing to the baseline designs only optimized by Xilinx Vivado HLS, ScaleHLS improves the performances with amazing quality-of-results -- up to 768.1x better on computation kernel level programs and up to 3825.0x better on neural network models.

Motivation & Objective

  • To address the scalability and customization limitations of existing HLS tools based on single-level compiler infrastructures like LLVM.
  • To enable efficient design space exploration (DSE) across multiple abstraction levels for diverse hardware workloads.
  • To support hierarchical, structurally complex designs by leveraging MLIR’s multi-level IR for better representation and optimization.
  • To develop an end-to-end HLS flow with C/C++ front-end and back-end integration within MLIR.

Proposed method

  • Leverages MLIR’s multi-level IR to represent and optimize HLS designs at various abstraction levels, enabling targeted optimizations per level.
  • Introduces an HLS-dedicated transform and analysis library to perform optimizations at the most suitable representation level for each design component.
  • Builds an automated DSE engine that efficiently explores the multi-dimensional design space using MLIR’s extensibility and hierarchical IR.
  • Develops a C front-end and C/C++ emission back-end to enable end-to-end translation of HLS designs into and out of MLIR IR.
  • Uses MLIR’s canonicalization and pass infrastructure to compose and compose optimization passes across abstraction levels.
  • Employs hierarchical representation and optimization to preserve structural and functional relationships in complex designs such as neural networks and kernels.

Experimental results

Research questions

  • RQ1How can a multi-level IR infrastructure improve the scalability and customization of High-Level Synthesis (HLS) flows?
  • RQ2Can MLIR’s hierarchical IR representation enable more effective optimization of complex, structured designs like neural networks and kernels?
  • RQ3How does an HLS-specific transform and analysis library integrated within MLIR improve optimization quality and performance?
  • RQ4To what extent can automated design space exploration (DSE) be accelerated using MLIR’s multi-level IR and extensible pass infrastructure?
  • RQ5What performance gains can be achieved by a next-generation HLS flow built on MLIR compared to existing tools like Vivado HLS?

Key findings

  • ScaleHLS achieves up to 768.1x higher performance on computation kernel-level programs compared to baseline designs optimized only with Xilinx Vivado HLS.
  • On neural network models, ScaleHLS delivers up to 3,825.0x improvement in performance over the same Vivado HLS baseline.
  • The multi-level IR in MLIR enables more effective and targeted optimization across different abstraction levels, improving both performance and design maintainability.
  • The automated DSE engine built on MLIR efficiently explores the multi-dimensional design space, leading to high-quality results with reduced manual effort.
  • The end-to-end flow, including C front-end and C/C++ back-end, enables seamless integration and transformation of HLS designs within the MLIR ecosystem.
  • The HLS-dedicated transform and analysis library enables precise, level-specific optimizations that significantly outperform monolithic optimization approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.