arrow
Return

Efficient and Fast High-Performance Library Generation for Deep Learning Accelerators

delete2025-01-01
delete0
PRE
AI
毕骏 cover
毕骏 (Jun Bi)
Y
Yuanbo Wen *
X
Xiaqing Li
Y
Yongwei Zhao
Y
Yuxuan Guo
E
Enshuai Zhou
X
Xing Hu
Z
Zidong Du
李玲 (Ling Li)
陈华平 (Huaping Chen)
T
Tianshi Chen
Q
Qi Guo
DOI:10.1109/TC.2024.3475575delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The widespread adoption of deep learning accelerators (DLAs) underscores their pivotal role in improving the performance and energy efficiency of neural networks. To fully leverage the capabilities of these accelerators, exploration-based library generation approaches have been widely used to substantially reduce software development overhead. However, these approaches have been challenged by issues related to sub-optimal optimization results and excessive optimization overheads. In this paper, we propose Heron to generate high-performance libraries of DLAs in an efficient and fast way. The key is automatically enforcing massive constraints through the entire program generation process and guiding the exploration with an accurate pre-trained cost model. Heron represents the search space as a constrained satisfaction problem (CSP) and explores the space via evolving the CSPs. Thus, the sophisticated constraints of the search space are strictly preserved during the entire exploration process. The exploration algorithm has the flexibility to engage in space exploration using either online-trained models or pre-trained models. Experimental results demonstrate that Heron averagely achieves 2.71$\times$x speedup over three state-of-the-art automatic generation approaches. Also, compared to vendor-provided hand-tuned libraries, Heron achieves a 2.00$\times$x speedup on average. When employing a pre-trained model, Heron achieves 11.6$\times$x compilation time speedup, incurring a minor impact on execution time.
Keywords:
Optimization
Space exploration
Schedules
Libraries
Biological cells
Deep learning
Costs
Computers
Search problems
Tensors
Code generation
compiler optimization
tensor computation

Journal

IEEE Transactions on Computers cover
IEEE Transactions on Computers
IF:
3.8
Papers:
5.3K
Citations:
9.8K

Organization

U
university of science & technology of china, cas
Scholars:
3.2W
Papers: 2.7W
Citations: 74
C
chinese academy of sciences
Scholars:
56.0W
Papers: 44.8W
Citations: 704