Architecture-Adaptive Code Variant Tuning

Author:

Muralidharan Saurav1,Roy Amit1,Hall Mary1,Garland Michael2,Rai Piyush3

Affiliation:

1. University of Utah, Salt Lake City, UT, USA

2. NVIDIA Corporation, Santa Clara, CA, USA

3. IIT Kanpur, Kanpur, India

Abstract

Code variants represent alternative implementations of a computation, and are common in high-performance libraries and applications to facilitate selecting the most appropriate implementation for a specific execution context (target architecture and input dataset). Automating code variant selection typically relies on machine learning to construct a model during an offline learning phase that can be quickly queried at runtime once the execution context is known. In this paper, we define a new approach called architecture-adaptive code variant tuning, where the variant selection model is learned on a set of source architectures, and then used to predict variants on a new target architecture without having to repeat the training process. We pose this as a multi-task learning problem, where each source architecture corresponds to a task; we use device features in the construction of the variant selection model. This work explores the effectiveness of multi-task learning and the impact of different strategies for device feature selection. We evaluate our approach on a set of benchmarks and a collection of six NVIDIA GPU architectures from three distinct generations. We achieve performance results that are mostly comparable to the previous approach of tuning for a single GPU architecture without having to repeat the learning phase.

Funder

Defense Advanced Research Projects Agency

Publisher

Association for Computing Machinery (ACM)

Reference38 articles.

1. PetaBricks

2. S. Baxter. Modern GPU library. http://nvlabs.github.io/moderngpu/. S. Baxter. Modern GPU library. http://nvlabs.github.io/moderngpu/.

3. Implementing sparse matrix-vector multiplication on throughput-oriented processors

4. Towards Low-Cost, High-Accuracy Classifiers for Linear Solver Selection

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

1. Using hardware performance counters to speed up autotuning convergence on GPUs;Journal of Parallel and Distributed Computing;2022-02

2. A Survey of Performance Tuning Techniques and Tools for Parallel Applications;IEEE Access;2022

3. The Behavioral Diversity of Java JSON Libraries;2021 IEEE 32nd International Symposium on Software Reliability Engineering (ISSRE);2021-10

4. Exploiting historical data: Pruning autotuning spaces and estimating the number of tuning steps;Concurrency and Computation: Practice and Experience;2020-08-10

5. A benchmark set of highly-efficient CUDA and OpenCL kernels and its dynamic autotuning with Kernel Tuning Toolkit;Future Generation Computer Systems;2020-07

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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