In Fig. 11.60 is a program to compute the first 100 rows of Pascal's triangle. That is, P[i,j] will become the number of ways to choose j things out of i, for 0 <><>a) Rewrite the code as a single, fully permutable loop nest.b) Use 100 processors in a pipeline to implement this code. Write the code for each processor p, in terms of p, and indicate the synchronization necessary.c) Rewrite the code using square blocks of 10 iterations on a side. Since the iterations form a triangle, there will be only 1 + 2-1 h 10 = 55 blocks. Show the code for a processor (pi,P2 ) assigned to the pit h block in the i direction and the p 2 t h block in the j direction, in terms of pi and p2 .
Fig. 11.60
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here