Conference paper Closed Access

In search of a map: using program slicing to discover potential parallelism in recursive functions

Barwell, Adam David; Hammond, Kevin

Recursion schemes, such as the well-known map, can be used as loci of potential parallelism, where schemes are replaced with an equivalent parallel implementation. This paper formalises a novel technique, using program slicing, that automatically and statically identifies computations in recursive functions that can be lifted out of the function and then potentially performed in parallel. We define a new program slicing algorithm, build a prototype implementation, and demonstrate its use on 12 Haskell examples, including benchmarks from the NoFib suite and functions from the standard Haskell Prelude. In all cases, we obtain the expected results in terms of finding potential parallelism. Moreover, we have tested our prototype against synthetic benchmarks, and found that our prototype has quadratic time complexity. For the NoFib benchmark examples we demonstrate that relative parallel speedups can be obtained (up to 32.93x— the sequential performance on 56 hyperthreaded cores).

 

This work has been partially supported by the EU FP7 grant "Parallel Patterns for Adaptive Heterogeneous Multicore Systems" (ICT- 288570), by the EU H2020 grant "RePhrase: Refactoring Parallel Heterogeneous Resource-Aware Applications – a Software Engineering Approach" (ICT-644235), by COST Action IC1202 ("Timing Analysis on Code-Level"), by the EPSRC grant "Discovery: Pattern Discovery and Program Shaping for Manycore Systems" (EP/P020631/1), and by Scottish Enterprise grant PS7305CA44.
Closed Access

Files are not publicly accessible.

2
0
views
downloads
Views 2
Downloads 0
Data volume 0 Bytes
Unique views 2
Unique downloads 0

Share

Cite as