Question: Setup The P - MATRIX - MULTIPLY - RECURSIVE procedure from chapter 2 6 . 2 must allocate a temporary matrix D of size n
Setup
The PMATRIXMULTIPLYRECURSIVE
procedure from chapter must allocate a temporary matrix D
of size ntimes n
which can adversely affect the constants hidden by the Theta
notation. The procedure has high parallelism, however: Theta nlogn
For example, ignoring the constants in the Theta
notation, the parallelism for multiplying times
matrices comes to approximately
since log
Most parallel computers have far fewer than million processors.
Part A
Parallelize MATRIXMULTIPLYRECURSIVE
from chapter without using temporary matrices so that it retains it Theta n
work.
TIP
Spawn the recursive calls, but insert a sync in a judicious location to avoid races.
Part B
Give and solve recurrences for the work and span of your implementation.
Part C
Analyze the parallelism of your implementation. Ignoring the constants in the Theta
notation, estimate the parallelism on times
matrices. Compare with the parallelism of PMATRIXMULTIPLYRECURSIVE
and discuss whether the tradeoff would be worthwhile.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
