Allo: A Programming Model for Composable Accelerator Design

Hongzheng Chen, Niansong Zhang, Shaojie Xiang, Zhichen Zeng, Mengjia Dai +1 more
4/7/2024
cs.PLcs.ARcs.LG

No official code found. Best implementation: cornell-zhang/allo (413 stars, Apache-2.0, last commit 2026-03-13). 1 more below.

Abstract

Special-purpose hardware accelerators are increasingly pivotal for sustaining performance improvements in emerging applications, especially as the benefits of technology scaling continue to diminish. However, designers currently lack effective tools and methodologies to construct complex, high-performance accelerator architectures in a productive manner. Existing high-level synthesis (HLS) tools often require intrusive source-level changes to attain satisfactory quality of results. Despite the introduction of several new accelerator design languages (ADLs) aiming to enhance or replace HLS, their advantages are more evident in relatively simple applications with a single kernel. Existing ADLs prove less effective for realistic hierarchical designs with multiple kernels, even if the design hierarchy is flattened. In this paper, we introduce Allo, a composable programming model for efficient spatial accelerator design. Allo decouples hardware customizations, including compute, memory, communication, and data type from algorithm specification, and encapsulates them as a set of customization primitives. Allo preserves the hierarchical structure of an input program by combining customizations from different functions in a bottom-up, type-safe manner. This approach facilitates holistic optimizations that span across function boundaries. We conduct comprehensive experiments on commonly-used HLS benchmarks and several realistic deep learning models. Our evaluation shows that Allo can outperform state-of-the-art HLS tools and ADLs on all test cases in the PolyBench. For the GPT2 model, the inference latency of the Allo generated accelerator is 1.7x faster than the NVIDIA A100 GPU with 5.4x higher energy efficiency, demonstrating the capability of Allo to handle large-scale designs.

View on arXivView PDF

Code Implementations(2)

cornell-zhang/alloCommunity100%
Apache-2.0

Allo Accelerator Design and Programming Framework (PLDI'24)

41379C, C++Jul 21, 20237 months agoApache-2.0
asiccompilerdslfpgahardware+2 more
Apache-2.0

Artifact evaluation of PLDI'24 paper "Allo: A Programming Model for Composable Accelerator Design"

341C, AdaMar 1, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{chen2024allo,
  title  = {Allo: A Programming Model for Composable Accelerator Design},
  author = {Hongzheng Chen and Niansong Zhang and Shaojie Xiang and Zhichen Zeng and Mengjia Dai and Zhiru Zhang},
  year   = {2024},
  eprint = {2404.04815},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.04815v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.04815.svg)](https://codeofpaper.com/paper/2404.04815)

Discussion