Exercise 1
Exercise 1
Solution
Amdahl’s law assumes that a program consists of a serial part and a
parallelizable part. The fraction of the program which is serial can be
denoted as B — so the parallel fraction becomes 1 − B. If there is no
additional overhead due to parallelization, the speedup can therefore be
expressed as
Exercise 2
Assume that the program invokes a broadcast operation. This broadcast
adds overhead, depending on the number of cores involved. There are two
broadcast implementations available. One adds a parallel overhead of
0.0001n, the other one 0.0005log(n). For which number of cores do you get
the highest speedup for both implementations?
Exercise 3
Exercise 4
Exercise 5
Exercise 6