Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started