next up previous contents
Next: Solution Up: Parallel Loops Previous: Solution

 

Forall

Given a list of n numbers, use a FORALL statement to calculate an array (size n-3) holding the sum of each set of four consequetive numbers. Add any other relevant HPF loop directives.




next up previous contents
Next: Solution Up: Parallel Loops Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996