ACM Home Page
Please provide us with feedback. Feedback
Raced profiles: efficient selection of competing compiler optimizations
Full text PdfPdf (516 KB)
Source
Language, Compiler and Tool Support for Embedded Systems archive
Proceedings of the 2009 ACM SIGPLAN/SIGBED conference on Languages, compilers, and tools for embedded systems table of contents
Dublin, Ireland
SESSION: Programming languages and compiler table of contents
Pages 50-59  
Year of Publication: 2009
ISBN:978-1-60558-356-3
Also published in ...
Authors
Hugh Leather  University of Edinburgh, Edinburgh, United Kingdom
Michael O'Boyle  University of Edinburgh, Edinburgh, United Kingdom
Bruce Worton  University of Edinburgh, Edinburgh, United Kingdom
Sponsors
ACM: Association for Computing Machinery
SIGBED: ACM Special Interest Group on Embedded Systems
SIGMICRO: ACM Special Interest Group on Microarchitectural Research and Processing
SIGART: ACM Special Interest Group on Artificial Intelligence
SIGPLAN: ACM Special Interest Group on Programming Languages
SIGDA: ACM Special Interest Group on Design Automation
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 13,   Downloads (12 Months): 63,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1542452.1542460
What is a DOI?

ABSTRACT

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 a brute force, constant sampling size approach. We also compare our approach to JavaSTATS(10); we needed 77% to 89% fewer runs than it needed.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
2
3
 
4
J Martin Bland and Douglas G Altman. Transforming data. BMJ (Clinical research ed.), 312, mar 1996.
 
5
B.L. Welch. The generalization of 'student's' problem when several different population varlances are involved. Biometrika, 34:28--35, 1947.
 
6
F. Bodin, T. Kisuk, P. M. W. Knijnenburg, M. F. P. O'Boyle, and E. Rohou. Iterative compilation in a non-linear optimisation space. In Workshop on Prole 14 and Feedback-Directed Compilation, in Conjunction with the International Conference on Parallel Architectures and Compilation Techniques (PACT), 10 1998.
 
7
G. E. P. Box and D. R. Cox. An analysis of transformations. Journal of the Royal Statistical Society. Series B (Methodological), 26(2):211--252, 1964.
 
8
E.C.Fieller. Some problems in interval estimation. Journal of the Royal Statistical Society, 16:175--185, 1954.
 
9
Grigori Fursin, Cupertino Miranda, Olivier Temam, Mircea Namolaru, Elad Yom-Tov, Ayal Zaks, Bilha Mendelson, Phil Barnard, Elton Ashton, Eric Courtois, Francois Bodin, Edwin Bonilla, John Thomson, Hugh Leather, Chris Williams, and Michael O'Boyle. Milepost gcc: machine learning based research compiler. In Proceedings of the GCC Developers'; Summit, June 2008.
10
 
11
Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13--30, March 1963.
12
 
13
M.A.Creasy. Confidence limits for the gradient in the linear functional relationship. Journal of the Royal Statistical Society, 18:64--69, 1956.
 
14
H. B. Mann and D. R. Whitney. On a test of whether one of two random variables is stochastically larger than the other. Annals of Mathematical Statistics, 18:50--60, 1947.
 
15
Oded Maron and Andrew W. Moore. Hoeffding races: Accelerating model selection search for classification and function approximation. In Advances in neural information processing systems 6, pages 59--66. Morgan Kaufmann, 1994.
 
16
 
17
 
18
19
 
20
Armitage P. and Healy M.J.R. Interpretation of Χ2 tests. Biometrics, 13:113-115, 1957.
 
21
F. E. Satterthwaite. An approximate distribution of estimates of variance components. Biometrics Bulletin, 2:110--114, 1946.
 
22
23
 
24
W.S.Gosset (Student). The probable error of a mean. Biometrika, 6:1--25, March 1908.
 
25
Abraham Wald. Sequential Analysis. 1947.
 
26
Stefan Wellek. Testing Statistical Hypotheses of Equivalence. CRC Press, 2003.
 
27
G.Barrie Wetherill and K.D. Glazebrook. Sequential methods in statistics. 3rd ed. London: Chapman and Hall, 1986.
 
28
John Whitehead. The Design and Analysis of Sequential Trials. Ellis Horwood, 1992.
 
29
W.J.Westlake. Use of confidence intervals in analysis of comparative bioavailability trials. Journal of Pharmaceutical Science, 61:1340--1341, 1972.

Collaborative Colleagues:
Hugh Leather: colleagues
Michael O'Boyle: colleagues
Bruce Worton: colleagues