Compiler Autotuning through Multiple Phase Learning

Author:

Zhu Mingxuan1,Hao Dan1,Chen Junjie2

Affiliation:

1. Key Laboratory of High Confidence Software Technologies (Peking University), Ministry of Education; School of Computer Science, Peking University, Beijing, China

2. Tianjin University, China

Abstract

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 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 combination. 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 paper we propose a lightweight learning approach which 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 which 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-art technique BOCA.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference55 articles.

1. Felix  V. Agakov , Edwin  V. Bonilla , John Cavazos , Björn Franke , Grigori Fursin , Michael F. P. O’Boyle , John Thomson , Marc Toussaint , and Christopher K .  I. Williams. 2006. Using Machine Learning to Focus Iterative Optimization . In Fourth IEEE/ACM International Symposium on Code Generation and Optimization (CGO 2006) , 26-29 March 2006 , New York, New York, USA. IEEE Computer Society, 295–305. Felix V. Agakov, Edwin V. Bonilla, John Cavazos, Björn Franke, Grigori Fursin, Michael F. P. O’Boyle, John Thomson, Marc Toussaint, and Christopher K. I. Williams. 2006. Using Machine Learning to Focus Iterative Optimization. In Fourth IEEE/ACM International Symposium on Code Generation and Optimization (CGO 2006), 26-29 March 2006, New York, New York, USA. IEEE Computer Society, 295–305.

2. Finding effective compilation sequences

3. Jason Ansel , Shoaib Kamil , Kalyan Veeramachaneni , Jonathan Ragan-Kelley , Jeffrey Bosboom , Una-May O’Reilly , and Saman  P. Amarasinghe . 2014 . OpenTuner: an extensible framework for program autotuning . In International Conference on Parallel Architectures and Compilation, PACT ’14 , Edmonton, AB, Canada , August 24-27, 2014, José Nelson Amaral and Josep Torrellas (Eds.). ACM, 303–316. Jason Ansel, Shoaib Kamil, Kalyan Veeramachaneni, Jonathan Ragan-Kelley, Jeffrey Bosboom, Una-May O’Reilly, and Saman P. Amarasinghe. 2014. OpenTuner: an extensible framework for program autotuning. In International Conference on Parallel Architectures and Compilation, PACT ’14, Edmonton, AB, Canada, August 24-27, 2014, José Nelson Amaral and Josep Torrellas (Eds.). ACM, 303–316.

4. Amir Hossein Ashouri. 2016. Compiler autotuning using machine learning techniques. ASHOURI_PhD_thesis_2016. pdf pages(2016) 3–4. Amir Hossein Ashouri. 2016. Compiler autotuning using machine learning techniques. ASHOURI_PhD_thesis_2016. pdf pages(2016) 3–4.

5. MiCOMP

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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