Question: for( i=0; i <511; i=i+1) { A[i] = A[i] + B[i]; /*S1*/ B[i+1] = C[i] + D[i]; /*S2*/ } Determine the loop-carried (inter-iteration) dependencies. Is
for( i=0; i<511; i=i+1)
{
A[i] = A[i] + B[i]; /*S1*/
B[i+1] = C[i] + D[i]; /*S2*/
}
-
Determine the loop-carried (inter-iteration) dependencies.
-
Is it parallel? Why?
-
If not, can you rewrite to make it parallel? How?
-
How long will it take to execute this loop on a 16-way processor?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
