LLM-Aided Compilation for Tensor Accelerators

Charles Hong, Sahil Bhatia, Altan Haan, Shengjun Kris Dong, Dima Nikiforov +2 more
8/6/2024
cs.ARcs.LGcs.PL

No confident code implementation found for this paper.

Abstract

Hardware accelerators, in particular accelerators for tensor processing, have many potential application domains. However, they currently lack the software infrastructure to support the majority of domains outside of deep learning. Furthermore, a compiler that can easily be updated to reflect changes at both application and hardware levels would enable more agile development and design space exploration of accelerators, allowing hardware designers to realize closer-to-optimal performance. In this work, we discuss how large language models (LLMs) could be leveraged to build such a compiler. Specifically, we demonstrate the ability of GPT-4 to achieve high pass rates in translating code to the Gemmini accelerator, and prototype a technique for decomposing translation into smaller, more LLM-friendly steps. Additionally, we propose a 2-phase workflow for utilizing LLMs to generate hardware-optimized code.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hong2024llmaided,
  title  = {LLM-Aided Compilation for Tensor Accelerators},
  author = {Charles Hong and Sahil Bhatia and Altan Haan and Shengjun Kris Dong and Dima Nikiforov and Alvin Cheung and Yakun Sophia Shao},
  year   = {2024},
  eprint = {2408.03408},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.03408v1}
}

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

Discussion