Quiz 2

Question 2

A program X has a constant sequential fraction value regardless of problem size. Amdahl’s and Gustafson’s Laws predict different maximum speedups.

Question 4

Given a program with 95% arithmeticinstructions and 5% memory instructions, Amdahl’s Law instructs programmer to optimize arithmetic calculation before looking into memory accessses

Question 6

Data parallelism: Within the main simulation there are no parallel heterogenous tasks. Ad d pragma omp above for loop in line 18

Parallel patterns:

Quiz 3

Question 1 + 2

Assumptions:

Question 3

Relaxed consistency models address the concern that software complexity is increased by the need for unnecessary sychronization.

Question 4 + 6

Cache coherence is the property that multiple caches contain the same set of items.