Autotuning Convolutions Is Easier Than You Think

Author:

Tollenaere Nicolas1ORCID,Iooss Guillaume1ORCID,Pouget Stéphane2ORCID,Brunie Hugo1ORCID,Guillon Christophe1ORCID,Cohen Albert3ORCID,Sadayappan P.4ORCID,Rastello Fabrice1ORCID

Affiliation:

1. INRIA, Grenoble, France

2. University of California Los-Angeles, Los Angeles, California, USA

3. Google, Paris, France

4. University of Utah, Utah, USA

Abstract

A wide range of scientific and machine learning applications depend on highly optimized implementations of tensor computations. Exploiting the full capacity of a given processor architecture remains a challenging task, due to the complexity of the microarchitectural features that come into play when seeking near-peak performance. Among the state-of-the-art techniques for loop transformations for performance optimization, AutoScheduler [Zheng et al. 2020a ] tends to outperform other systems. It often yields higher performance as compared to vendor libraries, but takes a large number of runs to converge, while also involving a complex training environment. In this article, we define a structured configuration space that enables much faster convergence to high-performance code versions, using only random sampling of candidates. We focus on two-dimensional convolutions on CPUs. Compared to state-of-the-art libraries, our structured search space enables higher performance for typical tensor shapes encountered in convolution stages in deep learning pipelines. Compared to auto-tuning code generators like AutoScheduler, it prunes the search space while increasing the density of efficient implementations. We analyze the impact on convergence speed and performance distribution, on two Intel x86 processors and one ARM AArch64 processor. We match or outperform the performance of the state-of-the-art oneDNN library and TVM’s AutoScheduler, while reducing the autotuning effort by at least an order of magnitude.

Funder

Bpifrance Programme d’Investissements d’Avenir (PIA) as part of the ES3CAP project

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference35 articles.

1. Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. 2016. Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI’16). USENIX Association, 265–283.

2. Riyadh Baghdadi, Jessica Ray, Malek Ben Romdhane, Emanuele Del Sozzo, Abdurrahman Akkas, Yunming Zhang, Patricia Suriana, Shoaib Kamil, and Saman P. Amarasinghe. 2019. Tiramisu: A polyhedral compiler for expressing fast and portable code. In IEEE/ACM International Symposium on Code Generation and Optimization (CGO’19), Mahmut Taylan Kandemir, Alexandra Jimborean, and Tipp Moseley (Eds.). IEEE, 193–205.

3. A Polynomial Time Algorithm for Counting Integral Points in Polyhedra When the Dimension is Fixed

4. Optimization space pruning without regrets

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

1. Advancing Direct Convolution Using Convolution Slicing Optimization and ISA Extensions;ACM Transactions on Architecture and Code Optimization;2023-12-14

2. Design and Implementation of Deep Learning 2D Convolutions on Modern CPUs;IEEE Transactions on Parallel and Distributed Systems;2023-12

3. Rank-Polymorphism for Shape-Guided Blocking;Proceedings of the 11th ACM SIGPLAN International Workshop on Functional High-Performance and Numerical Computing;2023-08-30

4. Extending a predictable machine learning framework with efficient gemm-based convolution routines;Real-Time Systems;2023-08-28

5. Extending a predictable machine learning framework with efficient gemm-based convolution routines;REAL-TIME SYST;2023

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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