Compiler Auto-tuning via Critical Flag Selection

被引:0
|
作者
Zhu, Mingxuan [1 ]
Hao, Dan [1 ]
机构
[1] Peking Univ, Minist Educ, Key Lab High Confidence Software Technol, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Compiler; Compiler Auto-tuning; Critical Flag Selection; Search; COMPILATION;
D O I
10.1109/ASE56229.2023.00209
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Widely used compilers like GCC usually have hundreds of optimizations controlled by optimization flags, which can be enabled or disabled during compilation to improve the runtime performance of a compiled program. Due to the large number of optimization flags and their combination, it is difficult for compiler users to tune compiler optimization flags manually. In the literature, many auto-tuning techniques have been proposed, which find a desired setting on all optimization flags (i.e., an optimization sequence) by designing different search strategies in the entire optimization space. Due to the huge search space, these techniques suffer from the widely-recognized efficiency problem. To reduce the search space, in this paper, we propose a critical-flag selection based approach CFSCA which first finds flags potentially relevant to the target program by analyzing program structure and compiler documentation, and then identifies critical flags through statistical analysis on the program's predicted runtime performance with various optimization sequences. With the reduced search space, CFSCA selects a desired optimization sequence. To evaluate the performance of the proposed approach CFSCA, we conduct an extensive experimental study on the latest version of the compiler GCC with a widely used benchmark cBench. The experimental results show that CFSCA significantly outperforms the four compared techniques, including the state-of-art technique BOCA.
引用
收藏
页码:1000 / 1011
页数:12
相关论文
共 50 条
  • [1] A Scalable Auto-tuning Framework for Compiler Optimization
    Tiwari, Ananta
    Chen, Chun
    Chame, Jacqueline
    Hall, Mary
    Hollingsworth, Jeffrey K.
    2009 IEEE INTERNATIONAL SYMPOSIUM ON PARALLEL & DISTRIBUTED PROCESSING, VOLS 1-5, 2009, : 796 - +
  • [2] A Bayesian Network Approach for Compiler Auto-tuning for Embedded Processors
    Ashouri, Amir Hossein
    Mariani, Giovanni
    Palermo, Gianluca
    Silvano, Cristina
    2014 IEEE 12TH SYMPOSIUM ON EMBEDDED SYSTEMS FOR REAL-TIME MULTIMEDIA (ESTIMEDIA), 2014, : 90 - 97
  • [3] EAtuner: Comparative Study of Evolutionary Algorithms for Compiler Auto-tuning
    Xiao, Guojian
    Qin, Siyuan
    Li, Kuan
    Chen, Juan
    Yin, Jianping
    PROCEEDINGS OF THE 2024 27 TH INTERNATIONAL CONFERENCE ON COMPUTER SUPPORTED COOPERATIVE WORK IN DESIGN, CSCWD 2024, 2024, : 419 - 426
  • [4] Efficient Auto-Tuning of Parallel Programs with Interdependent Tuning Parameters via Auto-Tuning Framework (ATF)
    Rasch, Ari
    Schulze, Richard
    Steuwer, Michel
    Gorlatch, Sergei
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2021, 18 (01)
  • [5] Language and Compiler Support for Auto-Tuning Variable-Accuracy Algorithms
    Ansel, Jason
    Wong, Yee Lok
    Chan, Cy
    Olszewski, Marek
    Edelman, Alan
    Amarasinghe, Saman
    2011 9TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION (CGO), 2011, : 85 - 96
  • [6] DLFusion: An Auto-Tuning Compiler for Layer Fusion on Deep Neural Network Accelerator
    Liu, Zihan
    Leng, Jingwen
    Chen, Quan
    Li, Chao
    Zheng, Wenli
    Li, Li
    Guo, Minyi
    2020 IEEE INTL SYMP ON PARALLEL & DISTRIBUTED PROCESSING WITH APPLICATIONS, INTL CONF ON BIG DATA & CLOUD COMPUTING, INTL SYMP SOCIAL COMPUTING & NETWORKING, INTL CONF ON SUSTAINABLE COMPUTING & COMMUNICATIONS (ISPA/BDCLOUD/SOCIALCOM/SUSTAINCOM 2020), 2020, : 118 - 127
  • [7] Parent Selection Pressure Auto-Tuning for Tournament Selection in Genetic Programming
    Xie, Huayang
    Zhang, Mengjie
    IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2013, 17 (01) : 1 - 19
  • [8] PERI Auto-Tuning
    Bailey, David H.
    Chame, Jacqueline
    Chen, Chun
    Dongarra, Jack
    Hall, Mary
    Hollingsworth, Jeffrey K.
    Hovland, Paul
    Moore, Shirley
    Seymour, Keith
    Shin, Jaewook
    Tiwari, Ananta
    Williams, Sam
    You, Haihang
    SCIDAC 2008: SCIENTIFIC DISCOVERY THROUGH ADVANCED COMPUTING, 2008, 125
  • [9] Auto-tuning of PID controllers via extremum seeking
    Killingsworth, N
    Krstic, M
    ACC: Proceedings of the 2005 American Control Conference, Vols 1-7, 2005, : 2251 - 2256
  • [10] moTuner: A Compiler-based Auto-tuning Approach for Mixed-precision Operators
    Mo, Zewei
    Lin, Zejia
    Zhang, Xianwei
    Lu, Yutong
    PROCEEDINGS OF THE 19TH ACM INTERNATIONAL CONFERENCE ON COMPUTING FRONTIERS 2022 (CF 2022), 2022, : 94 - 102