Next: Exception Handling
Up: Actual Loop Parallelization
Previous: Construction of LoopWorker_x
In the third and final step,
the original loop Li is replaced by the
following block of code, where low and high denote
the lower and upper bound expression that are used in the original loop,
and each li denotes a local variable or parameter
that is declared outside this loop, and
referred to (but unaltered) within the loop-body.
If myMethod() is a class method, construct
this is omitted from the constructor invocation:
Here, NUM, SVARS, and SCHED denote
compiler selected literal constants that
represent the number of loop-workers,
the number of synchronization variables, and the kind of
scheduling policy for this parallel loop, respectively.
ajcbik@extreme.indiana.edu