Algorithm XXX: Automatic Generators for a Family of Matrix Multiplication Routines with Apache TVM

Author:

Alaejos Guillermo1,Castelló Adrián1,Alonso-Jordá Pedro1,Igual Francisco D.2,Martínez Héctor3,Quintana-Ortí Enrique S.1

Affiliation:

1. Universitat Politècnica de València, Spain

2. Universidad Complutense de Madrid, Spain

3. Universidad de Córdoba, Spain

Abstract

We explore the utilization of the Apache TVM open source framework to automatically generate a family of algorithms that follow the approach taken by popular linear algebra libraries, such as GotoBLAS2, BLIS and OpenBLAS, in order to obtain high-performance blocked formulations of the general matrix multiplication ( gemm ). In addition, we fully automatize the generation process, by also leveraging the Apache TVM framework to derive a complete variety of the processor-specific micro-kernels for gemm . This is in contrast with the convention in high performance libraries, which hand-encode a single micro-kernel per architecture using Assembly code. In global, the combination of our TVM-generated blocked algorithms and micro-kernels for gemm 1) improves portability, maintainability and, globally, streamlines the software life cycle; 2) provides high flexibility to easily tailor and optimize the solution to different data types, processor architectures, and matrix operand shapes, yielding performance on a par (or even superior for specific matrix shapes) with that of hand-tuned libraries; and 3) features a small memory footprint.

Publisher

Association for Computing Machinery (ACM)

Subject

Applied Mathematics,Software

Reference37 articles.

1. Irwan Bello , Barret Zoph , Vijay Vasudevan , and Quoc  V. Le . 2017 . Neural Optimizer Search with Reinforcement Learning . In Proceedings of the 34th International Conference on Machine Learning, ICML 2017 , Sydney, NSW, Australia , 6-11 August 2017, Doina Precup and Yee Whye Teh (Eds.), Vol.  70. PMLR, 459–468. Irwan Bello, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. 2017. Neural Optimizer Search with Reinforcement Learning. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, Doina Precup and Yee Whye Teh (Eds.), Vol.  70. PMLR, 459–468.

2. Demystifying Parallel and Distributed Deep Learning

3. Random Search for Hyper-Parameter Optimization;Bergstra James;J. Mach. Learn. Res.,2012

4. Uday Bondhugula. 2020. High Performance Code Generation in MLIR: An Early Case Study with GEMM. CoRR abs/2003.00532(2020). arXiv:2003.00532 https://arxiv.org/abs/2003.00532 Uday Bondhugula. 2020. High Performance Code Generation in MLIR: An Early Case Study with GEMM. CoRR abs/2003.00532(2020). arXiv:2003.00532 https://arxiv.org/abs/2003.00532

5. Anatomy of the BLIS Family of Algorithms for Matrix Multiplication

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3