TensorLib: A Spatial Accelerator Generation Framework for Tensor Algebra
Authors:
- 5 December 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 865-870
Abstract
Tensor algebra finds applications in various domains, and these applications, especially when accelerated on spatial hardware accelerators, can deliver high performance and low power. Spatial hardware accelerator exhibits complex design space. Prior approaches based on manual implementation lead to low programming productivity, rendering thorough design space exploration impossible. In this paper, we propose TensorLib, a framework for generating spatial hardware accelerator for tensor algebra applications. TensorLib is motivated by the observation that, different dataflows share common hardware modules, which can be reused across different designs. To build such a framework, TensorLib first uses Space-Time Transformation to explore different dataflows, which can compactly represent the hardware dataflow using a simple transformation matrix. Next, we identify the common structures of different dataflows and build parameterized hardware module templates with Chisel. Our generation framework can select the needed hardware modules for each dataflow, connect the modules using a specified interconnection pattern, and automatically generate the complete hardware accelerator design. TensorLib remarkably improves the productivity for the development and optimization of spatial hardware architecture, providing a rich design space with tradeoffs in performance, area, and power. Experiments show that TensorLib can automatically generate hardware designs with different dataflows and achieve 21% performance improvement on FPGA compared to the state-of-the-arts.Keywords
All Related Versions
Funding Information
- Research and Development
This publication has 11 references indexed in Scilit:
- FCNNLib: An Efficient and Flexible Convolution Algorithm Library on FPGAs2020
- Generating Systolic Array Accelerators With Reusable BlocksIEEE Micro, 2020
- T2S-Tensor: Productively Generating High-Performance Spatial Hardware for Dense Tensor Computations2019
- HeteroCL2019
- In-Datacenter Performance Analysis of a Tensor Processing Unit2017
- Automated Systolic Array Architecture Synthesis for High Throughput CNN Inference on FPGAs2017
- EyerissACM SIGARCH Computer Architecture News, 2016
- ShiDianNao2015
- Chisel2012
- Efficient exploration of nonuniform space-time transformations for optimal systolic array synthesis2002