Raced Profiles: Efficient Selection of Competing Compiler Optimizations

被引:0
作者
Leather, Hugh [1 ]
O'Boyle, Michael [1 ]
Worton, Bruce
机构
[1] Univ Edinburgh, Sch Informat, Edinburgh EH8 9YL, Midlothian, Scotland
来源
LCTES'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN/SIGBED CONFERENCE ON LANGUAGES, COMPILERS, AND TOOLS FOR EMBEDDED SYSTEMS | 2009年
关键词
Iterative Compilation; Statistics;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Many problems in embedded compilation require one set of Optimizations to be selected over another based on run time performance. Self-tuned libraries, iterative compilation and machine learning techniques all compare multiple compiled program versions. In each, program versions are timed to determine which has the best performance. The program needs to be run multiple times for each version because there is noise inherent in most performance measurements. The number of runs must be enough to compare different versions, despite the noise, but executing more than this will waste time and energy. The compiler writer must either risk taking too few runs, potentially getting incorrect results, or taking too many runs increasing the time for their experiments or reducing the number of program versions evaluated. Prior works choose constant size sampling plans where each compiled version is executed a fixed number of times without regard to the level of noise. In this paper we develop a Sequential sampling plan which can automatically adapt to the experiment so that the compiler writer can have both confidence in the results and also be Sure that no more runs were taken than were needed. We show that our system is able to correctly determine the best optimization settings with between 76% and 87% fewer runs than needed by it brute force, constant sampling size approach. We also compare our approach to JavaSTATS(10); we needed 77% to 89% fewer runs than it needed.
引用
收藏
页码:50 / 59
页数:10
相关论文
共 29 条
[1]  
AGAKOV F, 2006, USING MACHINE LEARNI, P295
[2]  
ALMAGOR L, 2004, LCTES 04, P231
[3]  
[Anonymous], 1908, BIOMETRIKA, V6, P1
[4]  
[Anonymous], 2003, Testing statistical hypotheses of equivalence
[5]  
[Anonymous], 1994, P 6 INT C NEUR INF
[6]  
ARMITAGE P, 1957, BIOMETRICS, V13, P113
[7]  
BLACKBURN SM, 2006, OOPSLA 2006 ACM C OB
[8]  
Bland JM, 1996, BMJ, V312
[9]  
BODIN F, 1998, WORKSH PROL 14 FEEDB, P10
[10]   AN ANALYSIS OF TRANSFORMATIONS [J].
BOX, GEP ;
COX, DR .
JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES B-STATISTICAL METHODOLOGY, 1964, 26 (02) :211-252