Milepost GCC: Machine Learning Enabled Self-tuning Compiler

Abstract : Tuning compiler optimizations for rapidly evolving hardwaremakes porting and extending an optimizing compiler for each new platform extremely challenging. Iterative optimization is a popular approach to adapting programs to a new architecture automatically using feedback-directed compilation. However, the large number of evaluations required for each program has prevented iterative compilation from widespread take-up in production compilers. Machine learning has been proposed to tune optimizations across programs systematically but is currently limited to a few transformations, long training phases and critically lacks publicly released, stable tools. Our approach is to develop a modular, extensible, self-tuning optimization infrastructure to automatically learn the best optimizations across multiple programs and architectures based on the correlation between program features, run-time behavior and optimizations. In this paper we describeMilepostGCC, the first publicly-available open-source machine learning-based compiler. It consists of an Interactive Compilation Interface (ICI) and plugins to extract program features and exchange optimization data with the cTuning.org open public repository. It automatically adapts the internal optimization heuristic at function-level granularity to improve execution time, code size and compilation time of a new program on a given architecture. Part of the MILEPOST technology together with low-level ICI-inspired plugin framework is now included in the mainline GCC.We developed machine learning plugins based on probabilistic and transductive approaches to predict good combinations of optimizations. Our preliminary experimental results show that it is possible to automatically reduce the execution time of individual MiBench programs, some by more than a factor of 2, while also improving compilation time and code size. On average we are able to reduce the execution time of the MiBench benchmark suite by 11% for the ARC reconfigurable processor.We also present a realistic multi-objective optimization scenario for Berkeley DB library using Milepost GCC and improve execution time by approximately 17%, while reducing compilation
Type de document :
Article dans une revue
International Journal of Parallel Programming, Springer Verlag, 2011, 39, pp.296-327. <10.1007/s10766-010-0161-2>
Liste complète des métadonnées

https://hal.inria.fr/hal-00685276
Contributeur : Ist Rennes <>
Soumis le : mercredi 4 avril 2012 - 16:24:14
Dernière modification le : jeudi 9 février 2017 - 15:28:30

Identifiants

Citation

Grigori Fursin, Yuriy Kashnikov, Abdul Wahid Memon, Zbigniew Chamski, Olivier Temam, et al.. Milepost GCC: Machine Learning Enabled Self-tuning Compiler. International Journal of Parallel Programming, Springer Verlag, 2011, 39, pp.296-327. <10.1007/s10766-010-0161-2>. <hal-00685276>

Partager

Métriques

Consultations de la notice

833