ReLooper: Refactoring for Loop Parallelism

Danny Dig, Cosmin Radoi, Mihai Tarce, Marius Minea, Ralph E. Johnson

Illinois Digital Environment for Access to Learning and Scholarship (University of Illinois at Urbana-Champaign) · 2009 · 13 citations · 11 references

Full text

Open access

Concepts

Abstract

In the multicore era, sequential programs need to be refactored for parallelism. The next version of Java provides ParallelArray, an array data structure that supports parallel operations over the array elements. For example, one can
\napply a procedure to each element, or reduce all elements to a new element in parallel. Refactoring an array to a ParallelArray
\nrequires (i) analyzing whether the loop iterations
\nare safe for parallel execution, and (ii) replacing loops with the equivalent parallel operations. When done manually, these tasks are non-trivial and time-consuming. We present ReLooper, an Eclipse-based refactoring tool, that performs
\nthese tasks automatically. Experience with refactoring real programs shows that ReLooper is useful: it reduces the burden of analyzing and rewriting parallel loops, and it is fast enough to be used interactively.

References

11