The Sparse Abstract Machine

Olivia Hsu, Maxwell Strange, Ritvik Sharma, Jaeyeon Won, Kunle Olukotun +3 more
8/31/2022
cs.ARcs.PL

Official code: weiya711/sam (21 stars, Python, MIT, last commit 2025-10-17).

Abstract

We propose the Sparse Abstract Machine (SAM), an abstract machine model for targeting sparse tensor algebra to reconfigurable and fixed-function spatial dataflow accelerators. SAM defines a streaming dataflow abstraction with sparse primitives that encompass a large space of scheduled tensor algebra expressions.

Show full abstract

SAM dataflow graphs naturally separate tensor formats from algorithms and are expressive enough to incorporate arbitrary iteration orderings and many hardware-specific optimizations. We also present Custard, a compiler from a high-level language to SAM that demonstrates SAM's usefulness as an intermediate representation. We automatically bind from SAM to a streaming dataflow simulator. We evaluate the generality and extensibility of SAM, explore the performance space of sparse tensor algebra optimizations using SAM, and show SAM's ability to represent dataflow hardware.

View on arXivView PDF

Code Implementations(1)

weiya711/samOfficial100%
MIT
214Python, ShellOct 1, 20211 years agoMIT

Similar Papers

Cite this paper

@article{hsu2022sparse,
  title  = {The Sparse Abstract Machine},
  author = {Olivia Hsu and Maxwell Strange and Ritvik Sharma and Jaeyeon Won and Kunle Olukotun and Joel Emer and Mark Horowitz and Fredrik Kjolstad},
  year   = {2022},
  eprint = {2208.14610},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.14610}
}

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/2208.14610.svg)](https://codeofpaper.com/paper/2208.14610)

Discussion