A Collaborative Filtering Approach for the Automatic Tuning of Compiler Optimisations

Stefano Cereda, Gianluca Palermo, Paolo Cremonesi, Stefano Doni
5/6/2020
cs.DCcs.PF

Official code: stefanocereda/polybench_data (4 stars, last commit 2020-08-28).

Abstract

Selecting the right compiler optimisations has a severe impact on programs' performance. Still, the available optimisations keep increasing, and their effect depends on the specific program, making the task human intractable.

Show full abstract

Researchers proposed several techniques to search in the space of compiler optimisations. Some approaches focus on finding better search algorithms, while others try to speed up the search by leveraging previously collected knowledge. The possibility to effectively reuse previous compilation results inspired us toward the investigation of techniques derived from the Recommender Systems field. The proposed approach exploits previously collected knowledge and improves its characterisation over time. Differently from current state-of-the-art solutions, our approach is not based on performance counters but relies on Reaction Matching, an algorithm able to characterise programs looking at how they react to different optimisation sets. The proposed approach has been validated using two widely used benchmark suites, cBench and PolyBench, including 54 different programs. Our solution, on average, extracted 90% of the available performance improvement 10 iterations before current state-of-the-art solutions, which corresponds to 40% fewer compilations and performance tests to perform.

View on arXivView PDF

Code Implementations(1)

Dataset for the tuning of compiler optimizations on the PolyBench suite

40Oct 29, 20196 years ago

Similar Papers

Cite this paper

@article{cereda2020collaborative,
  title  = {A Collaborative Filtering Approach for the Automatic Tuning of Compiler Optimisations},
  author = {Stefano Cereda and Gianluca Palermo and Paolo Cremonesi and Stefano Doni},
  year   = {2020},
  eprint = {2005.04092},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.04092}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.04092.svg)](https://codeofpaper.com/paper/2005.04092)

Discussion