An aspect pointcut for parallelizable loops
Author(s) -
John S. Dean,
Frank J. Mitropoulos
Publication year - 2014
Publication title -
nsuworks (nova southeastern university)
Language(s) - English
Resource type - Conference proceedings
DOI - 10.1145/2554850.2554917
Subject(s) - parallelizable manifold , aspect oriented programming , compiler , computer science , loop (graph theory) , separation of concerns , code (set theory) , parallel computing , programming language , algorithm , mathematics , software , set (abstract data type) , combinatorics
In this paper, we describe the design and implementation of a parallelizable loop pointcut for an aspect-oriented compiler. Prior to this study, several prototype solutions existed for loop pointcuts, but the solutions were not very granular. In particular, they were not able to differentiate between loops that are parallelizable and those that are not. Being able to identify parallelizable loops automatically, as part of an aspect-oriented compiler, is particularly important because (1) manually identifying parallelizable loops is known to be a difficult problem and (2) aspectizing parallelized loops can lead to a reduction in code tangling and an increase in separation of concerns. Identifying parallelizable loops is known to be a difficult problem, and as such, this study's parallelizable loop pointcut implements a heuristic solution. Thus, the pointcut identifies many parallelizable loops as being parallelizable, but not all. For two test programs where the pointcut was unable to identify parallelizable loops, the inability to detect parallelizability was, surprisingly, somewhat beneficial. When those programs' loops ran in parallel (as part of a non-aspect-oriented program), their calculated results were slightly different from the known theoretical results, but when run sequentially (with the aspect-oriented compiler), the calculated results matched the known theoretical results.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom