Rapidly Selecting Good Compiler Optimizations using Performance Counters
The DOI matches its Crossref record; 19 of the 19 references it cites were found in a registry or an index.
Abstract
Applying the right compiler optimizations to a particular program can have a significant impact on program performance. Due to the non-linear interaction of compiler optimizations, however, determining the best setting is non-trivial. There have been several proposed techniques that search the space of compiler options to find good solutions; however such approaches can be expensive. This paper proposes a different approach using performance counters as a means of determining good compiler optimization settings. This is achieved by learning a model off-line which can then be used to determine good settings for any new program. We show that such an approach outperforms the state-of-the-art and is two orders of magnitude faster on average. Furthermore, we show that our performance counter-based approach outperforms techniques based on static code features. Using our technique we achieve a 17% improvement over the highest optimization setting of the commercial PathScale EKOPath 2.3.1 optimizing compiler on the SPEC benchmark suite on a AMD Athlon 64 3700+ platform
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Neural networks for pattern recognition
(1994) · Choice Reviews Online · doi:10.5860/choice.31-5500 · Cited by 18,538
The Design and Implementation of FFTW3
Frigo, M., & Johnson, S. G. (2005) · Proceedings of the IEEE · doi:10.1109/jproc.2004.840301 · Cited by 5,086 · cited 1×
“Iterative compilation is able to find optimization sequences that out-perform the highest optimization settings in commercial compilers and when applied to library subroutines they find solutions that compare favorably with highlyoptimized hand-tuned vendor libraries [31, 12, 26, 30].”
BackgroundMiBench: A free, commercially representative embedded benchmark suite
Guthaus, M. R., Ringenberg, J. S., Ernst, D. J., Austin, T. M., Mudge, T., & Brown, R. B. (2001) · doi:10.1109/wwc.2001.15 · Cited by 3,103
Neural networks for pattern recognition
Marshall, J. A. (1995) · Neural Networks · doi:10.1016/0893-6080(95)90002-0 · Cited by 1,889
The Theory of Information and Coding
McEliece, R. (2002) · Cambridge University Press eBooks · doi:10.1017/cbo9780511606267 · Cited by 986
Automatically Tuned Linear Algebra Software
Whaley, R. C., & Dongarra, J. J. (1998) · Conference on High Performance Computing (Supercomputing) · doi:10.5555/509058.509096 · Cited by 854
SPIRAL: Code Generation for DSP Transforms
Puschel, M., Moura, J. M. F., Johnson, J. R., Padua, D., Veloso, M. M., Singer, B. W., Xiong, J., Franchetti, F., Gacic, A., Voronenko, Y., et al. (2005) · Proceedings of the IEEE · doi:10.1109/jproc.2004.840306 · Cited by 826 · cited 1×
“Iterative compilation is able to find optimization sequence s that out-perform the highest optimization settings in commercial compilers and when applied to library subroutines they find solutions that compare favorably with highlyoptimized hand-tuned vendor libraries [30, 11, 25, 29].”
BackgroundAutomatically Tuned Linear Algebra Software
Whaley, R. C., & Dongarra, J. J. (1998) · Proceedings of the IEEE/ACM SC98 Conference · doi:10.1109/sc.1998.10004 · Cited by 527 · cited 1×
“Iterative compilation is able to find optimization sequence s that out-perform the highest optimization settings in commercial compilers and when applied to library subroutines they find solutions that compare favorably with highlyoptimized hand-tuned vendor libraries [30, 11, 25, 29].”
BackgroundUsing Machine Learning to Focus Iterative Optimization
Agakov, F. V., Bonilla, E. V., Cavazos, J. E., Franke, B., Fursin, G., O’boyle, M. F. P., Thomson, J. D., Toussaint, M., & Williams, C. K. I. (2006) · Proceedings of the CGO/Proceedings of the ... CGO · doi:10.1109/cgo.2006.37 · Cited by 426 · cited 2×
“Speci.cally, we use the performance counter values collected from a few runs of the program as input to an automatically constructed model which outputs a probability distribution of good compiler optimizations to use.”
BackgroundMethodSelf-citationOptimizing for reduced code space using genetic algorithms
Cooper, K. D., Schielke, P. J., & Subramanian, D. (1999) · ACM SIGPLAN/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems (LCTES) · doi:10.1145/314403.314414 · Cited by 349 · cited 2×
“During the past several years, the benefits of iterative compilation have been widely reported [14, 7, 8, 10, 13].”
BackgroundMethodAdaptive Optimizing Compilers for the 21st Century
Cooper, K. D., Subramanian, D., & Torczon, L. (2002) · The Journal of Supercomputing · doi:10.1023/a:1015729001611 · Cited by 198 · cited 1×
“During the past several years, the benefits of iterative compilation have been widely reported [14, 7, 8, 10, 13].”
BackgroundCompiler Optimization-Space Exploration
Triantafyllis, S., Vachharajani, M., Vachharajani, N., & August, D. I. (2003) · Cited by 195
Predicting Unroll Factors Using Supervised Classification
Stephenson, M., & Amarasinghe, S. (2005) · International Symposium on Code Generation and Optimization · doi:10.1109/cgo.2005.29 · Cited by 185 · cited 2×
“Conventional approach [27] which uses binning and ignores input interactions (dash-do tted curve) is comparable with the uniform random selection.”
BackgroundResultCombined Selection of Tile Sizes and Unroll Factors Using Iterative Compilation
Kisuki, T., Knijnenburg, P. M. W., & O’Boyle, M. (2000) · doi:10.5555/517554.825767 · Cited by 177
Self-citationA comparison of empirical and model-driven optimization
Yotov, K., Li, X., Ren, G., Cibulskis, M., DeJong, G., Garzaran, M., Padua, D., Pingali, K., Stodghill, P., & Wu, P. (2003) · ACM SIGPLAN Notices · doi:10.1145/780822.781140 · Cited by 165
Fast searches for effective optimization phase sequences
Kulkarni, P. A., Hines, S. R., Hiser, J. D., Whalley, D. B., Davidson, J. W., & Jones, D. L. (2004) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/996841.996863 · Cited by 121 · cited 1×
“[15] introduce the VISTA system, an interactive compilation system which concentrates on reducing compilation time.”
Statistical Models for Empirical Search-Based Performance Tuning
Vuduc, R. W., Demmel, J. W., & Bilmes, J. (2004) · The International Journal of High Performance Computing Applications · doi:10.1177/1094342004041293 · Cited by 114 · cited 1×
“Iterative compilation is able to find optimization sequence s that out-perform the highest optimization settings in commercial compilers and when applied to library subroutines they find solutions that compare favorably with highlyoptimized hand-tuned vendor libraries [30, 11, 25, 29].”
BackgroundAutomatic selection of compiler options using non-parametric inferential statistics
Haneda, M., Knijnenburg, P. M. W., & Wijshoff, H. A. G. (2005) · International Conference on Parallel Architectures and Compilation Techniques (PACT) · doi:10.1109/pact.2005.9 · Cited by 68 · cited 5×
“O Boyle1 Olivier Temam2 Members of HiPEAC 1Institute for Computing Systems Architecture (ICSA) School of Informatics, University of Edinburgh, UK 2ALCHEMY Group, INRIA Futurs and LRI, Paris-Sud University, France Abstract Applying the right compiler optimizations to a particular program can have a signi.cant impact o…”
MethodInfluentialThink globally, search locally
Yotov, K., Pingali, K. K., & Stodghill, P. V. (2005) · International Conference on Supercomputing · doi:10.1145/1088149.1088168 · Cited by 39 · cited 1×
“In the later paper [32] they refine analytical models based on the results of the empirical search for the ATLAS library.”
Method
Cited by
Milepost GCC: Machine Learning Enabled Self-tuning Compiler
Fursin, G., Kashnikov, Y., Memon, A. W., Chamski, Z., Temam, O., Namolaru, M., Yom-Tov, E., Mendelson, B., Zaks, A., Courtois, E., et al. (2011) · International Journal of Parallel Programming · doi:10.1007/s10766-010-0161-2 · Cited by 234
“Current approaches [60,12,72, 2,11] are highly preliminary, limited to global compiler flags or a few transformations considered in isolation.”
BackgroundMethodSelf-citationA Survey on Compiler Autotuning using Machine Learning
Ashouri, A. H., Killian, W., Cavazos, J., Palermo, G., & Silvano, C. (2019) · ACM Computing Surveys · doi:10.1145/3197978 · Cited by 233
“application’s dynamic behavior at run-time. This information summarizes essential aspects of an application’s running performance, i.e. number of cache misses or the utilization of ˚oating point unit [51]. However, the information can be inaccurate or misleading if the application is run on di˛erent target architectur…”
BackgroundMethodInfluentialSelf-citationMachine Learning in Compiler Optimization
Wang, Z., & O'Boyle, M. (2018) · Proceedings of the IEEE · doi:10.1109/jproc.2018.2817118 · Cited by 193
Self-citationMapping parallelism to multi-cores: a machine learning based approach
Wang, Z., & O'Boyle, M. F. P. (2009) · Proceedings of the 14th ACM SIGPLAN symposium on Principles and practice of parallel programming · doi:10.1145/1504176.1504189 · Cited by 186
Self-citationMethodological Principles for Reproducible Performance Evaluation in Cloud Computing
Papadopoulos, A. V., Versluis, L., Bauer, A., Herbst, N., Kistowski, J. V., Ali-Eldin, A., Abad, C. L., Amaral, J. N., Tuma, P., & Iosup, A. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2927908 · Cited by 93
“[30], that yielded an open toolkit2 for portable experiment definition, implementation, execution and evaluation.”
Background
Metadata
- Authors
- Cavazos, J., Fursin, G., Agakov, F., Bonilla, E., O'Boyle, M. F. P., & Temam, O.
- Venue
- International Symposium on Code Generation and Optimization (CGO'07)
- Publisher
- IEEE
- Published
- 2007-03
- Pages
- 185-197
- OpenAlex
- W2142079700
- Cited by
- 237
- References
- 19
- FWCI
- 10.46
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.