Reputation: 4508
This is not homework. I'm taking a computer architecture MOOC on my own time. There is a problem I can't figure out and maybe someone can help me. Here it is:
Memory operations currently take 30% of the execution time.
What is the total speedup?
Here is the formula that is used to calculate the speedup:
Speedup = 1 / [(1 - Non-speedup portion) + (Sped up portion 1)/speedup1 + (Sped up portion 2)/speedup2 + ...]
I calculated it as follows:
Speedup = 1 / [0.7 + 0.3*0.8/4 + 0.3*0.2*0.5/2 + 0.3*0.2*0.5] = 1.2422
But the answer is wrong which indicates that my reasoning is wrong, but I can't figure out where it is wrong. Can someone help me out?
Thanks.
Upvotes: 1
Views: 768
Reputation: 4508
So as it turns out my fist answer was correct. As it happens the answer has to be with 2 digits after the decimal point. I.e it will consider 1.2422 as a wrong answer but 1.24 as a correct one. Sorry for the confusion everyone and thanks for the help.
Upvotes: 1