11 - Performance & Optimisation Flashcards
What is implicit with the goal of parallelism?
Optimisation
What are 2 ways to decide which parallelisation strategy is better?
Use theoretical measures
Measure the performance and compare
What is theoretical performance?
Span/step and work complexity
What is the most critical part when parallelising code?
The theoretical performance.
It can give you huge speedup gains
What is latency?
The time it takes to complete a single task
What is throughput?
The rate at which tasks can be complete
What is better, higher or lower latency?
Lower
What is better, higher or lower throughput?
Higher
What does latency minimise?
Time at the expense of power
What does throughput minimise?
Quantity of tasks processed per unit of time
What is optimised for low latency computations, CPU or GPU?
CPU
What is optimised for data-parallel and high throughput computations?
GPU
What has the larger cache? CPU or GPU?
CPU
What is speedup?
Compares the time T for solving the identical problem on one processor versus on p processors
What is the ideal speedup?
Linear