arrow
返回

Enabling One-Size-Fits-All Compilation Optimization for Inference Across Machine Learning Computers

delete2021-01-01
delete2
delete
OA
AI
Y
Yuanbo Wen
Q
Qi Guo *
Z
Zidong Du
J
Jianxing Xu
Z
Zhenxing Zhang
X
Xing Hu
W
Wei Li
R
Rui Zhang
王
王超 (Chao Wang)
周
周学海 (Xuehai Zhou)
T
Tianshi Chen
DOI:10.1109/TC.2021.3128266delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Machine Learning Computers (MLCs) with tensor functional units (e.g., NVIDIA's Tensor Core, Google's TPU and Habana's Tensor Processor Core) have emerged significantly over recent years. The broad diversity of MLCs makes it hard to deploy machine learning workloads with optimized performance. Though deep learning compilers (e.g., TVM) are effective to produce optimized code for different hardware back-ends, when deploying to a new MLC, it is tedious to implement platform-specific compilation optimizations by thoroughly understanding system/architectural details. To address this problem, we propose a holistic approach to achieve one-size-fits-all compilation optimization for inference across different MLCs. The key observation is that diverse MLCs share multiple key architectural characteristics (e.g., tensor primitives and on-chip scratchpad memory) for tensor processing, which can be generalized for conducting cross-platform compilation optimizations. Concretely, we propose the Tensor Abstract Machine (TAM), which features such common architectural characteristics, as the abstraction of a broad range of MLCs. To leverage architectural characteristics of the TAM, we propose the Tensor Scheduling Language (TSL) consisting of tensor computation description and tensor scheduling primitives for implementing operations with portable optimization. By implementing tensor operations with TSL, the related optimized code for different MLCs can be automatically generated. To validate our proposal, we conduct experiments on 3 commodity MLCs including GPU with Tensor Cores, VTA (on FPGA), and Cloud TPU. Experimental results demonstrate that the code generated from the same optimization schedule achieves 1.05x to 2.05x better performance than hand-tuned libraries and deep learning compilers across different platforms.
Keyword:
Tensors
Optimization
Schedules
Libraries
Deep learning
Computers
Programming
Machine learning computers
compilation optimization
tensor operations

期刊

IEEE Transactions on Computers 封面图
IEEE Transactions on Computers
IF:
3.8
论文数:
5.4K
被引数:
9.8K

机构

U
university of science & technology of china, cas
学者数:
3.2W
论文数: 2.7W
被引数: 74
C
chinese academy of sciences
学者数:
56.7W
论文数: 45.0W
被引数: 704
引用论文

引用论文

Blastococcus capsensis sp. nov., isolated from an archaeological Roman pool and emended description of the genus Blastococcus, B. aggregatus, B. saxobsidens, B. jejuensis and B. endophyticus
err2016-11-01
err0
errOAAI
errKarima Hezbri; Moussa Louati; Imen Nouioui; Maher Gtari; Manfred Rohde; Cathrin Spröer; Peter Schumann; Hans-Peter Klenk; Faten Ghodhbane-Gtari; Maria del Carmen Montero-Calasanz
err分享
err收藏
Natural and Electroporation-Mediated Transformation of Methanococcus voltae Protoplasts
err1994-03-01
err0
errOAAI
errGirishchandra B. Patel; John H. E. Nash; Brian J. Agnew; G. Dennis Sprott
err分享
err收藏
Vías de exposición a plaguicidas en escolares de la Provincia de Talca, Chile
err2014-05-01
err0
errOAAI
errMaría Teresa Muñoz-Quezada; Boris Lucero; Verónica Iglesias; María Pía Muñoz
err分享
err收藏
Retreatment with anti‐PD‐1 antibody in non‐small cell lung cancer patients previously treated with anti‐PD‐L1 antibody
err2019-11-07
err0
errOAAI
errKohei Fujita; Yuki Yamamoto; Osamu Kanai; Misato Okamura; Masayuki Hashimoto; Koichi Nakatani; Satoru Sawai; Tadashi Mio
err分享
err收藏
Cellular prion protein regulates intracellular hydrogen peroxide level and prevents copper-induced apoptosis
err2004-10-01
err0
PREAI
errTakuya Nishimura; Akikazu Sakudo; Izuru Nakamura; Deug-chan Lee; Yojiro Taniuchi; Keiichi Saeki; Yoshitsugu Matsumoto; Masaharu Ogawa; Suehiro Sakaguchi; Shigeyoshi Itohara; Takashi Onodera
err分享
err收藏
学者 查看更多内容