1. Union: A Unified HW-SW Co-Design Ecosystem in MLIR for Evaluating Tensor Operations on Spatial Accelerators
- Author
-
Geonhwa Jeong, Tushar Krishna, Gokcen Kestor, Prasanth Chatarasi, Sivasankaran Rajamanickam, Roberto Gioiosa, Angshuman Parashar, and Po-An Tsai
- Subjects
FOS: Computer and information sciences ,Tensor contraction ,Flexibility (engineering) ,Computer Science - Machine Learning ,Dataflow ,Computer science ,business.industry ,Distributed computing ,Deep learning ,computer.software_genre ,Machine Learning (cs.LG) ,Software ,Computer Science - Distributed, Parallel, and Cluster Computing ,Hardware Architecture (cs.AR) ,Distributed, Parallel, and Cluster Computing (cs.DC) ,Orchestration (computing) ,Artificial intelligence ,Compiler ,Computer Science - Hardware Architecture ,business ,computer ,Abstraction (linguistics) - Abstract
To meet the extreme compute demands for deep learning across commercial and scientific applications, dataflow accelerators are becoming increasingly popular. While these "domain-specific" accelerators are not fully programmable like CPUs and GPUs, they retain varying levels of flexibility with respect to data orchestration, i.e., dataflow and tiling optimizations to enhance efficiency. There are several challenges when designing new algorithms and mapping approaches to execute the algorithms for a target problem on new hardware. Previous works have addressed these challenges individually. To address this challenge as a whole, in this work, we present a HW-SW co-design ecosystem for spatial accelerators called Union within the popular MLIR compiler infrastructure. Our framework allows exploring different algorithms and their mappings on several accelerator cost models. Union also includes a plug-and-play library of accelerator cost models and mappers which can easily be extended. The algorithms and accelerator cost models are connected via a novel mapping abstraction that captures the map space of spatial accelerators which can be systematically pruned based on constraints from the hardware, workload, and mapper. We demonstrate the value of Union for the community with several case studies which examine offloading different tensor operations(CONV/GEMM/Tensor Contraction) on diverse accelerator architectures using different mapping schemes., Comment: This paper is accepted to PACT 2021
- Published
- 2021
- Full Text
- View/download PDF