-- Feb 13 In-Class Exercise Thread
Suppose we were to run P-Fib(4) whose execution graph we saw last day on two processors.
What would be the maximum run time according to Brent/Blumofe Leirsons's theorem?
``
Solution: Brent/Blumofe Leirsons's theorem provides an upper bound of `T_P\le T_1/P + T_\infty`. Given that `P=2, T_1 = 17`, and `T_\infty = 8`, the upper bound for `T_2` is given by `T_2\le 17/2+8 = 16.5`.
Mark up the graph with the complete and incomplete steps.
``
Solution: Using a DFS rule for the greedy scheduler,
Using a BFS rule for the greedy scheduler,
How many steps does the computation actually take?
``
Solution: Because `T_1 = 17`, given that we have 3 incomplete steps (1 strand each), we will have 7 complete steps (2 strands each). Therefore the total number of steps is 10 steps.
(
Edited: 2019-02-15)
''Suppose we were to run P-Fib(4) whose execution graph we saw last day on two processors.''
----
''What would be the maximum run time according to Brent/Blumofe Leirsons's theorem?''
@BT@@BT@
'''Solution: ''' Brent/Blumofe Leirsons's theorem provides an upper bound of @BT@T_P\le T_1/P + T_\infty@BT@. Given that @BT@P=2, T_1 = 17@BT@, and @BT@T_\infty = 8@BT@, the upper bound for @BT@T_2@BT@ is given by @BT@T_2\le 17/2+8 = 16.5@BT@.
----
''Mark up the graph with the complete and incomplete steps.''
@BT@@BT@
'''Solution: '''Using a DFS rule for the greedy scheduler,
((resource:IMG_0170.jpg|Resource Description for IMG_0170.jpg))
Using a BFS rule for the greedy scheduler,
((resource:IMG_2DEF148FC217-1.jpeg|Resource Description for IMG_2DEF148FC217-1.jpeg))
----
''How many steps does the computation actually take?''
@BT@@BT@
'''Solution: ''' Because @BT@T_1 = 17@BT@, given that we have 3 incomplete steps (1 strand each), we will have 7 complete steps (2 strands each). Therefore the total number of steps is 10 steps.