HW1 Sol
HW1 Sol
c) (9 points) Based on Amdahl’s Law, the speedup that the hardware group could achieve is
Speedupoverall = 1 / [(1− Fractionenhanced)+ Fractionenhanced / Speedupenhanced]
= 1 /[(1− 70%)+ 70% / (2 × 20)]
≈ 3.1496
For the compiler crew, they have to increase the original percentage of vectorization to X
for achieving the same speedup as what the hardware group does. X can be found by
using Amdahl’s Law again as
Speedupoverall = 1 / [(1− Fractionenhanced)+ Fractionenhanced / Speedupenhanced]
3.1496 = 1 / [(1− X)+ X / 20]
X ≈ 71.84%
So, the increase of the percentage of vectorization is 1.84%. Comparing to a significant
additional engineering investment required by the hardware group, adding a small
amount of the percentage of vectorization costs less. It is defiantly worth investing the
compiler crew!