Solution

1. Check out the formula for speedup according to Gustafson’s law and briefly describe its parameters.

Gustafson's law:

Sp=Ws+pWpWs+Wp=pλ(p1)

where the speedup Sp depends on

The whole work T=Ws+Wp is the the work that can be executed by one processor in T time.

2. Assume that 20 percent of the code of an algorithm cannot be parallelized. What is the maximally achievable speedup according to Amdahl’s law?

Amdahl's law (with λ=0.2,p):

S=1λ=115=5

The maximal achievable speedup is 5×.

3. Imagine you have a processor providing 47 cores. Assume 94 percent of a program can be parallelized and there is no additional overhead when running this program on all cores. By using Amdahl’s law, what is the parallel speedup maximally achievable?

with λ=0.06,p=47:

Sp1λ+1λp=1350+135047=1350+150=504=12.5

The maximal achievable speedup is 12.5×.