Piecewise holistic autotuning of parallel programs with CERE
Authors:
- 20 June 2017
- journal article
- research article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 29 (15)
Abstract
Summary: Current architecture complexity requires fine tuning of compiler and runtime parameters to achieve best performance. Autotuning substantially improves default parameters in many scenarios, but it is a costly process requiring long iterative evaluations. We propose an automatic piecewise autotuner based on CERE (Codelet Extractor and REplayer). CERE decomposes applications into small pieces called codelets: Each codelet maps to a loop or to an OpenMP parallel region and can be replayed as a standalone program. Codelet autotuning achieves better speedups at a lower tuning cost. By grouping codelet invocations with the same performance behavior, CERE reduces the number of loops or OpenMP regions to be evaluated. Moreover, unlike whole‐program tuning, CERE customizes the set of best parameters for each specific OpenMP region or loop. We demonstrate the CERE tuning of compiler optimizations, number of threads, thread affinity, and scheduling policy on both nonuniform memory access and heterogeneous architectures. Over the NAS benchmarks, we achieve an average speedup of 1.08× after tuning. Tuning a codelet is 13× cheaper than whole‐program evaluation and predicts the tuning impact with a 94.7% accuracy. Similarly, exploring thread configurations and scheduling policies for a Black‐Scholes solver on an heterogeneous big.LITTLE architecture is over 40× faster using CERE.Keywords
Funding Information
- Mont-Blanc Project (671697)
This publication has 28 references indexed in Scilit:
- PCERE: Fine-Grained Parallel Benchmark Decomposition for Scalability Prediction2015
- Adaptive sampling for performance characterization of application kernelsConcurrency and Computation: Practice and Experience, 2013
- Milepost GCC: Machine Learning Enabled Self-tuning CompilerInternational Journal of Parallel Programming, 2011
- Effective Source-to-Source Outlining to Support Whole Program Empirical Optimization2010
- Quick and Practical Run-Time Evaluation of Multiple Program Optimizations2007
- Compiler optimization-space exploration2003
- A comparison of trace-sampling techniques for multi-megabyte cachesIEEE Transactions on Computers, 1994
- Reverse time migrationGeophysics, 1983
- Hierarchical Grouping to Optimize an Objective FunctionJournal of the American Statistical Association, 1963
- Who Belongs in the Family?Psychometrika, 1953