Back to Search
Start Over
Rec2Poly: Converting Recursions to Polyhedral Optimized Loops Using an Inspector-Executor Strategy
- Source :
- SAMOS 2020: Embedded Computer Systems: Architectures, Modeling, and Simulation, SAMOS 2020: Embedded Computer Systems: Architectures, Modeling, and Simulation, pp.96-109, 2020, ⟨10.1007/978-3-030-60939-9_7⟩, Lecture Notes in Computer Science ISBN: 9783030609382, SAMOS
- Publication Year :
- 2020
- Publisher :
- HAL CCSD, 2020.
-
Abstract
- International audience; In this paper, we propose Rec2Poly, a framework which detects automatically if recursive programs may be transformed into affine loops that are compliant with the polyhedral model. If successful, the replacing loops can then take advantage of advanced loop optimizing and parallelizing transformations as tiling or skewing. Rec2Poly is made of two main phases: an offline profiling phase and an inspector-executor phase. In the profiling phase, the original recursive program, which has been instrumented, is run. Whenever possible, the trace of collected information is used to build equivalent affine loops from the runtime behavior. Then, an inspector-executor program is automatically generated, where the inspector is made of a light version of the original recursive program, whose aim is reduced to the generation and verification of the information which is essential to ensure the correctness of the equivalent affine loop program. The collected information is mainly related to the touched memory addresses and the control flow of the so-called "impacting" basic blocks of instructions. Moreover, in order to exhibit the lowest possible time-overhead, the inspector is implemented as a parallel process where several memory buffers of information are verified simultaneously. Finally, the executor is made of the equivalent affine loops that have been optimized and parallelized.
- Subjects :
- LOOP (programming language)
Computer science
0202 electrical engineering, electronic engineering, information engineering
Recursive functions
Polytope model
020206 networking & telecommunications
020201 artificial intelligence & image processing
02 engineering and technology
Affine transformation
Executor
Algorithm
[INFO.INFO-CL]Computer Science [cs]/Computation and Language [cs.CL]
Subjects
Details
- Language :
- English
- ISBN :
- 978-3-030-60938-2
- ISBNs :
- 9783030609382
- Database :
- OpenAIRE
- Journal :
- SAMOS 2020: Embedded Computer Systems: Architectures, Modeling, and Simulation, SAMOS 2020: Embedded Computer Systems: Architectures, Modeling, and Simulation, pp.96-109, 2020, ⟨10.1007/978-3-030-60939-9_7⟩, Lecture Notes in Computer Science ISBN: 9783030609382, SAMOS
- Accession number :
- edsair.doi.dedup.....6e65149ac5c4174d50adfe18ec156aea
- Full Text :
- https://doi.org/10.1007/978-3-030-60939-9_7⟩