CPUs and architecture

Which model plots whether a program's performance is limited by compute throughput or memory bandwidth, using arithmetic intensity (operations per byte) on the horizontal axis?

  1. AAmdahl's law
  2. BThe roofline model
  3. CThe Poisson model
Show answer and explanation

Answer: B. The roofline model

The roofline model plots performance against arithmetic intensity (operations per byte transferred to or from memory). Low-intensity workloads hit a slanted ceiling set by memory bandwidth; high-intensity workloads hit a flat ceiling at peak compute. With 1 TB/s of bandwidth and 100 TFLOPS of compute, for example, anything below 100 FLOP/byte is memory-bound. The model guides whether to improve data reuse or compute efficiency.

Roofline model 0.1 1 10 100 1000 Arithmetic intensity (FLOP/byte, log scale) Performance (FLOP/s, log scale) Ridge point Peak compute Slope = memory BW ← Memory-bound Compute-bound → e.g. matrix × vector e.g. large matrix multiply Ridge = peak ÷ bandwidth
Roofline model · View in diagrams
  • A. Amdahl's law expresses the speedup limit caused by the non-parallelizable part.
  • B. Correct. It plots the limits of compute and memory bandwidth.
  • C. The Poisson model is used for yield calculations and the like.