[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1109/CGO.2006.37acmconferencesArticle/Chapter ViewAbstractPublication PagescgoConference Proceedingsconference-collections
Article

Using Machine Learning to Focus Iterative Optimization

Published: 26 March 2006 Publication History

Abstract

Iterative compiler optimization has been shown to outperform static approaches. This, however, is at the cost of large numbers of evaluations of the program. This paper develops a new methodology to reduce this number and hence speed up iterative optimization. It uses predictive modelling from the domain of machine learning to automatically focus search on those areas likely to give greatest performance. This approach is independent of search algorithm, search space or compiler infrastructure and scales gracefully with the compiler optimization space size. Off-line, a training set of programs is iteratively evaluated and the shape of the spaces and program features are modelled. These models are learnt and used to focus the iterative optimization of a new program. We evaluate two learnt models, an independent and Markov model, and evaluate their worth on two embedded platforms, the Texas Instrument C6713 and the AMD Au1500. We show that such learnt models can speed up iterative search on large spaces by an order of magnitude. This translates into an average speedup of 1.22 on the TI C6713 and 1.27 on the AMD Au1500 in just 2 evaluations.

References

[1]
{1} L. Almagor, K.D. Cooper, A. Grosul, T. J. Harvey, S. W. Reeves, D. Subramanian, L. Torczon and T. Waterman: Finding effective compilation sequences In LCTES 2004.
[2]
{2} C. Bishop, Neural Networks for Pattern Recognition, OUP, 2005.
[3]
{3} F. Bodin, T. Kisuki, P.M.W. Knijnenburg, M.F.P. O'Boyle, and E. Rohou. Iterative Compilation in a Non-Linear Optimisation Space. Workshop on Profi le Directed Feedback-Compilation , PACT'98, October 1998.
[4]
{4} J. Cavazos and J. E.B. Moss, Inducing Heuristics to Decide Whether to Schedule, In ACM PLDI, May 2004.
[5]
{5} K. Chow and Y. Wu. Feedback-directed selection and characterization of compiler optimizations. In FDDO-4, 2001.
[6]
{6} K. D. Cooper, A. Grosul, T.J. Harvey, S. Reeves, D. Subramanian, L. Torczon and T. Waterman. Searching for compilation sequences. Rice technical report, 2005.
[7]
{7} K. D. Cooper, A. Grosul, T.J. Harvey, S. Reeves, D. Subramanian, L. Torczon and T. Waterman. ACME: adaptive compilation made efficient. In ACM LCTES, 2005.
[8]
{8} B. Franke and M.F.P. O'Boyle, J. Thomson and G. Fursin. Probabilistic Source-Level Optimisation of Embedded Programs In ACM LCTES 2005.
[9]
{9} E.F. Granston and A. Holler. Automatic recommendation of compiler options. In (FDDO-4), December 2001.
[10]
{10} M. Hall, L. Anderson, S. Amarasinghe, B. Murphy, S.W. Liao, E. Bugnion, M. and Lam. Maximizing multiprocessor performance with the SUIF compiler. IEEE Computer , 29(12), 84-89, 1999.
[11]
{11} P. Kulkarni, W. Zhao, H. Moon, K. Cho, D. Whalley, J. Davidson, M. Bailey, Y. Park and K. Gallivan. Finding effective optimization phase sequences. In ACM LCTES, 2003.
[12]
{12} P. Kulkarni, S. Hines, J. Hiser, D. Whalley J. Davidson and D. Jones. Fast searches for effective optimization phase sequences. In ACM PLDI, May 2004.
[13]
{13} C. Lattner and V. Adve, LLVM: a compilation framework for lifelong program analysis & transformation, In CGO, 2004.
[14]
{14} C. Lee. UTDSP benchmark suite. http://www.eecg.toronto.edu/~corinna/ DSP/infrastructure/UTDSP.html, 1998.
[15]
{15} S. Liao, S. Devadas, K. Keutzer, A. Tjiang and A. Wang Optimization Techniques for Embedded DSP Microprocessors In DAC, 1995.
[16]
{16} A. Monsifrot, F. Bodin and R. Quiniou, A machine learning approach to automatic production of compiler heuristics, In International Conference on Artificial Intelligence: Methodology, Systems, Applications, 2002.
[17]
{17} K. Yotov, X. Li, G. Ren, M. Cibulskis, G. DeJong, M. Garzarn, D. Padua, K. Pingali, P. Stodghill and P. Wu. A Comparison of Empirical and Model-driven Optimization. In PLDI 2003.
[18]
{18} M. Saghir, P. Chow and C. Lee. A comparison of traditional and VLIW DSP architecture for compiled DSP applications. In CASES '98, Washington, DC, USA, 1998.
[19]
{19} M. Stephenson, S. Amarasinghe, M. Martin and U-M. O'Reilly Meta Optimization: Improving Compiler Heuristics with Machine Learning In PLDI 2003.
[20]
{20} B. Su, J. Wang and A. Esguerra. Source-level loop optimization for DSP code generation. In Proceedings of 1999 IEEE International Conference on Acoustic, Speech and Signal Processing (ICASSP '99), volume 4, pages 2155-2158, Phoenix, AZ, 1999.
[21]
{21} S. Triantafyllis, M. Vachharajani, N. Vachharajani and D. I. August Compiler Optimization-Space Exploration In CGO March 2003.

Cited By

View all
  • (2024)MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum ComputingACM Transactions on Quantum Computing10.1145/3673241Online publication date: 17-Jun-2024
  • (2024)Tile Size and Loop Order Selection using Machine Learning for Multi-/Many-Core ArchitecturesProceedings of the 38th ACM International Conference on Supercomputing10.1145/3650200.3656630(388-399)Online publication date: 30-May-2024
  • (2024)The Droplet Search Algorithm for Kernel SchedulingACM Transactions on Architecture and Code Optimization10.1145/365010921:2(1-28)Online publication date: 21-May-2024
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
CGO '06: Proceedings of the International Symposium on Code Generation and Optimization
March 2006
347 pages
ISBN:0769524990

Sponsors

Publisher

IEEE Computer Society

United States

Publication History

Published: 26 March 2006

Check for updates

Qualifiers

  • Article

Conference

CGO06

Acceptance Rates

CGO '06 Paper Acceptance Rate 29 of 80 submissions, 36%;
Overall Acceptance Rate 312 of 1,061 submissions, 29%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)8
  • Downloads (Last 6 weeks)2
Reflects downloads up to 13 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2024)MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum ComputingACM Transactions on Quantum Computing10.1145/3673241Online publication date: 17-Jun-2024
  • (2024)Tile Size and Loop Order Selection using Machine Learning for Multi-/Many-Core ArchitecturesProceedings of the 38th ACM International Conference on Supercomputing10.1145/3650200.3656630(388-399)Online publication date: 30-May-2024
  • (2024)The Droplet Search Algorithm for Kernel SchedulingACM Transactions on Architecture and Code Optimization10.1145/365010921:2(1-28)Online publication date: 21-May-2024
  • (2024)Exponentially Expanding the Phase-Ordering Search Space via Dormant InformationProceedings of the 33rd ACM SIGPLAN International Conference on Compiler Construction10.1145/3640537.3641582(250-261)Online publication date: 17-Feb-2024
  • (2022)Investigating magic numbers: improving the inlining heuristic in the Glasgow Haskell CompilerProceedings of the 15th ACM SIGPLAN International Haskell Symposium10.1145/3546189.3549918(81-94)Online publication date: 6-Sep-2022
  • (2022)Object Intersection Captures on Interactive Apps to Drive a Crowd-sourced Replay-based Compiler OptimizationACM Transactions on Architecture and Code Optimization10.1145/351733819:3(1-25)Online publication date: 4-May-2022
  • (2022)Automating reinforcement learning architecture design for code optimizationProceedings of the 31st ACM SIGPLAN International Conference on Compiler Construction10.1145/3497776.3517769(129-143)Online publication date: 19-Mar-2022
  • (2021)CGPTunerProceedings of the VLDB Endowment10.14778/3457390.345740414:8(1401-1413)Online publication date: 21-Oct-2021
  • (2021)Iterative Compilation Optimization Based on Metric Learning and Collaborative FilteringACM Transactions on Architecture and Code Optimization10.1145/348025019:1(1-25)Online publication date: 6-Dec-2021
  • (2021)Predictive data locality optimization for higher-order tensor computationsProceedings of the 5th ACM SIGPLAN International Symposium on Machine Programming10.1145/3460945.3464955(43-52)Online publication date: 21-Jun-2021
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media