arrow
Return

Compiler Autotuning through Multiple-phase Learning

delete2024-04-18
delete3
delete
OA
AI
M
Mingxuan Zhu
D
Dan Hao *
J
Junjie Chen
DOI:10.1145/3640330delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Widely used compilers like GCC and LLVM usually have hundreds of optimizations controlled by optimization flags, which are enabled or disabled during compilation to improve the runtime performance (e.g., small execution time) of the compiler program. Due to the large number of optimization flags and their combination, it is difficult for compiler users to manually tune compiler optimization flags. In the literature, a number of autotuning techniques have been proposed, which tune optimization flags for a compiled program by comparing its actual runtime performance with different optimization flag combinations. Due to the huge search space and heavy actual runtime cost, these techniques suffer from the widely recognized efficiency problem. To reduce the heavy runtime cost, in this article we propose a lightweight learning approach that uses a small number of actual runtime performance data to predict the runtime performance of a compiled program with various optimization flag combinations. Furthermore, to reduce the search space, we design a novel particle swarm algorithm that tunes compiler optimization flags with the prediction model. To evaluate the performance of the proposed approach, CompTuner, we conduct an extensive experimental study on two popular C compilers, GCC and LLVM, with two widely used benchmarks, cBench and PolyBench. The experimental results show that CompTuner significantly outperforms the six compared techniques, including the state-of-the-art technique BOCA.
Keywords:
Compiler
compiler autotuning
multiple phase learning
particle swarm optimization
A Survey on Compiler Autotuning using Machine Learning
err2018-09-18
err123
errOAAI
errAshouri, Amir H.; Killian, William; Cavazos, John; Palermo, Gianluca; Silvano, Cristina
errShare
errSave
Fast compiler autotuning framework using design of experiments
err2025-12-01
err0
PREAI
errXu, Chenghua; Sun, Jingwei; Sai, Mengna; Zhang, Fuxin; Sun, Guangzhong; Hu, Weiwu
errShare
errSave
On the usage and development of deep learning compilers: an empirical study on TVM
err2022-09-20
err0
PREAI
errWu, Xiongfei; Yang, Jinqiu; Ma, Lei; Xue, Yinxing; Zhao, Jianjun
errShare
errSave
Towards making autotuning mainstream
err2013-07-01
err14
PREAI
errBasu, Protonu; Hall, Mary; Khan, Malik; Maindola, Suchit; Muralidharan, Saurav; Ramalingam, Shreyas; Rivera, Axel; Shantharam, Manu; Venkat, Anand
errShare
errSave
TSCompiler: efficient compilation framework for dynamic-shape models
err2024-09-13
err0
PREAI
errLuo, Xiang; Zhang, Chen; Geng, Chenbo; Yi, Yanzhi; Hu, Jiahui; Zhang, Renwei; Zhang, Zhen; Consolaro, Gianpietro; Yang, Fan; Lu, Tun; Gu, Ning; Shang, Li
errShare
errSave
Model-based autotuning of discretization methods in numerical simulations of partial differential equations
err2022-01-01
err4
errOAAI
errKhouzami, Nesrine; Michel, Friedrich; Incardona, Pietro; Castrillon, Jeronimo; Sbalzarini, Ivo F.
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

Peking University cover
Peking University
Scholars:
9.2K
Papers: 2.8K
Citations: 7.1W
Tianjin University cover
Tianjin University
Scholars:
9.3K
Papers: 2.7K
Citations: 4.7W
Cited Papers

Cited Papers

Reinforcement learning approach to autonomous PID tuning
err2022-05-01
err63
PREAI
errDogru, Oguzhan; Velswamy, Kirubakaran; Ibrahim, Fadi; Wu, Yuqi; Sundaramoorthy, Arun Senthil; Huang, Biao; Xu, Shu; Nixon, Mark; Bell, Noel
errShare
errSave
Taking the Human Out of the Loop: A Review of Bayesian Optimization
err2016-01-01
err3.5K
PREAI
errShahriari, Bobak; Swersky, Kevin; Wang, Ziyu; Adams, Ryan P.; de Freitas, Nando
errShare
errSave
A nonsecreting pheochromocytoma presenting as an incidental adrenal mass. Report on a case
err2014-04-04
err0
PREAI
errMassimo Mannelli; C. Pupilli; R. Lanzillotti; L. Ianni; A. Amorosi; G. Credi; C. Pratesi
errShare
errSave
A Survey on Compiler Autotuning using Machine Learning
err2018-09-18
err123
errOAAI
errAshouri, Amir H.; Killian, William; Cavazos, John; Palermo, Gianluca; Silvano, Cristina
errShare
errSave
Case Report: Aperiodic Fluctuations of Neural Activity in the Ictal MEG of a Child With Drug-Resistant Fronto-Temporal Epilepsy
err2021-03-04
err0
errOAAI
errSaskia van Heumen; Jeremy T. Moreau; Elisabeth Simard-Tremblay; Steffen Albrecht; Roy WR. Dudley; Sylvain Baillet
errShare
errSave
errShare
errSave
researcher View more