z-logo
open-access-imgOpen Access
Using Machine Learning in Order to Improve Automatic SIMD Instruction Generation
Author(s) -
Antoine Trouvé,
Arnaldo J. CRUZ,
Hiroki Fukuyama,
Jun Maki,
Hadrien A. Clarke,
Kazuaki Murakami,
Masaki Arai,
Tadashi Nakahira,
Eiji Yamanaka
Publication year - 2013
Publication title -
procedia computer science
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.334
H-Index - 76
ISSN - 1877-0509
DOI - 10.1016/j.procs.2013.05.296
Subject(s) - computer science , speedup , simd , vectorization (mathematics) , benchmark (surveying) , loop unrolling , compiler , parallel computing , suite , block (permutation group theory) , software , programming language , geometry , mathematics , geodesy , archaeology , history , geography
Basic block vectorization consists in extracting instruction level parallelism inside basic blocks in order to generate SIMD instructions and thus speedup data processing. It is however a double-edged technique, because the vectorized program may actually be slower than the original one. Therefore, it would be useful to predict beforehand whether or not vectorization could actually produce any speedup. In this article, we propose to do so by using a machine learning technique called support vector machine. We consider a benchmark suite containing 151 loops, unrolled with factors ranging from 1 to 20. We do our prediction offline after as well as before unrolling. Our contribution is threefold. First, we manage to predict correctly the profitability of vectorization for 70% of the programs in both cases. Second, we propose a list of static software characteristics that successfully describe our benchmark with respect to our goal. Finally, we determine that machine learning makes it possible to significantly improve the quality of the code generated by Intel Compiler, with speedups up to 2.2 times

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom