Static Loop Parallelization Decision Using Template Metaprogramming
Authors:
- Alexis PeredaAPAlexis Pereda
- David R.C. HillDHDavid R.C. Hill
- Claude MazelCMClaude Mazel
- Bruno BacheletBBBruno Bachelet
- 1 July 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1015-1021
Abstract
This article proposes to use C++ template metaprogramming techniques to decide at compile-time which parts of a code sequence in a loop can be parallelized. The approach focuses on characterizing the way a variable is accessed in a loop (reading or writing); first to decide how the loop should be split to enable the analysis for parallelization on each part; and then to decide if the iterations inside each loop are independent so that they can be run in parallel. The conditions that enable the parallelization of a loop are first explained to justify the proposed decision algorithm exposed. Then; a C++ library-based solution is presented that uses expression templates to get the relevant information necessary for the parallelization decision of a loop; and metaprograms to decide whether to parallelize the loop and generate a parallel code.Keywords
This publication has 12 references indexed in Scilit:
- Metaprogramming-Enabled Parallel Execution of Apparently Sequential C++ Code2016
- A serial to parallel C++ code converter for multi-core machines2016
- Automatic Task-Based Code Generation for High Performance Domain Specific Embedded LanguageInternational Journal of Parallel Programming, 2015
- Fast Expression TemplatesLecture Notes in Computer Science, 2005
- Concept-Controlled Polymorphism2003
- Arrays in Blitz++1998
- Advanced tools and techniques for automatic parallelizationParallel Computing, 1988
- SUPERB: A tool for semi-automatic MIMD/SIMD parallelizationParallel Computing, 1988
- Data dependence and its application to parallel processingInternational Journal of Parallel Programming, 1987
- Analysis of Programs for Parallel ProcessingIEEE Transactions on Electronic Computers, 1966