HASCO: Towards Agile HArdware and Software CO-design for Tensor Computation

Qingcheng Xiao, Size Zheng, Bingzhe Wu, Pengcheng Xu, Xuehai Qian +1 more
5/4/2021
cs.ARcs.AI

Official code: pku-liang/HASCO (53 stars, Python, Apache-2.0, last commit 2021-12-12).

Abstract

Tensor computations overwhelm traditional general-purpose computing devices due to the large amounts of data and operations of the computations. They call for a holistic solution composed of both hardware acceleration and software mapping.

Show full abstract

Hardware/software (HW/SW) co-design optimizes the hardware and software in concert and produces high-quality solutions. There are two main challenges in the co-design flow. First, multiple methods exist to partition tensor computation and have different impacts on performance and energy efficiency. Besides, the hardware part must be implemented by the intrinsic functions of spatial accelerators. It is hard for programmers to identify and analyze the partitioning methods manually. Second, the overall design space composed of HW/SW partitioning, hardware optimization, and software optimization is huge. The design space needs to be efficiently explored. To this end, we propose an agile co-design approach HASCO that provides an efficient HW/SW solution to dense tensor computation. We use tensor syntax trees as the unified IR, based on which we develop a two-step approach to identify partitioning methods. For each method, HASCO explores the hardware and software design spaces. We propose different algorithms for the explorations, as they have distinct objectives and evaluation costs. Concretely, we develop a multi-objective Bayesian optimization algorithm to explore hardware optimization. For software optimization, we use heuristic and Q-learning algorithms. Experiments demonstrate that HASCO achieves a 1.25X to 1.44X latency reduction through HW/SW co-design compared with developing the hardware and software separately.

View on arXivView PDF

Code Implementations(1)

pku-liang/HASCOOfficial100%
Apache-2.0

agile hardware-software co-design

537PythonApr 3, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{xiao2021hasco,
  title  = {HASCO: Towards Agile HArdware and Software CO-design for Tensor Computation},
  author = {Qingcheng Xiao and Size Zheng and Bingzhe Wu and Pengcheng Xu and Xuehai Qian and Yun Liang},
  year   = {2021},
  eprint = {2105.01585},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.01585}
}

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

Discussion