Title :
Optimal Tile Size Selection Problem Using Machine Learning
Author_Institution :
Comput. Sci. Dept., Univ. of Houston, Houston, TX, USA
Abstract :
One of the key feature of modern architectures is deep memory hierarchies. In order to exploit this feature, one has to expose data locality with-in a program. Loop tiling is an optimization phase in modern compilers which is used to transform a loop for exposing data locality. Selecting the best tile size for a given architecture and compiler is known as Optimal Tile Size Selection Problem. It is a NP-hard problem. People have build cost models for this problem that characterize the performance of a program as a function of tile sizes. The best tile size for a given loop is determined directly by using these models. Hand crafting an accurate tile size selection cost model is hard. Can we automatically learn a tile size selection model? This is an important question. In this paper, we have shown that a fairly accurate model can be learned using simple program dynamic features with standard machine learning techniques. We evaluate our approach on different architecture and compiler combinations. The model given by us consistently shows near-optimal performance (within 4% of the optimal) across all architecture and compiler combinations.
Keywords :
learning (artificial intelligence); memory architecture; optimisation; program compilers; NP-hard problem; compiler combinations; data locality; deep memory hierarchies; loop tiling; near-optimal performance; optimal tile size selection problem; optimization phase; program dynamic features; program performance; standard machine learning techniques; Artificial neural networks; Computer architecture; Kernel; Machine learning; Predictive models; Tiles; artificial neural networks; compiler optimization; loop tiling; loop blocking; machine learning; tile size selection;
Conference_Titel :
Machine Learning and Applications (ICMLA), 2012 11th International Conference on
Conference_Location :
Boca Raton, FL
Print_ISBN :
978-1-4673-4651-1
DOI :
10.1109/ICMLA.2012.214