Next:
Parallel Loops
Up:
Local Index Sets
Previous:
Local Index Sets
Solution
2 marks:
P(1) has
template
items 1:2, 15:16, 29:30, 43:44.
P(2) has
template
items 3:4, 17:18, 31:32, 45:46.
P(3) has
template
items 5:6, 19:20, 33:34, 47:48.
P(4) has
template
items 5:8, 21:22, 35:36, 49:50.
P(5) has
template
items 9:10, 23:24, 37:38, 51.
P(6) has
template
items 11:12, 25:26, 39:40.
P(7) has
template
items 13:14, 27:28, 41:42.
P(1) has A elements 1, 4.
P(2) has A elements 7, 10.
P(3) has A element 2.
P(4) has A elements 5, 8.
P(6) has A elements 3, 6.
P(7) has A element 9.
P(1) has B elements B(4,:), B(9,:).
P(2) has B elements B(5,:).
P(3) has B elements B(1,:), B(10,:).
P(4) has B elements B(6,:).
P(5) has B elements B(2,:), B(7,:).
P(6) has B elements B(3,:).
P(7) has B elements B(8,:).
P(1) has C elements 1:2, 15:16.
P(2) has C elements 3:4, 17:18.
P(3) has C elements 5:6, 19:20.
P(4) has C elements 5:8, 21:22.
P(5) has C elements 9:10, 23:24.
P(6) has C elements 11:12, 25.
P(7) has C elements 13:14.
2 marks:
P(1,:) all have A(1:10)
P(2,:) all have A(11:20)
P(3,:) all have A(21:30)
P(10,:) all have A(91:100)
2 marks:
All processors have a copy of A. B is given the compiler default distribution.
Next:
Parallel Loops
Up:
Local Index Sets
Previous:
Local Index Sets
©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.