AI Hardware & Software Stack

On an accelerator with 100 TFLOPS peak and 2 TB/s memory bandwidth, a workload with arithmetic intensity 10 FLOP/byte runs. What performance does the Roofline model predict?

  1. A100 TFLOPS (compute-bound)
  2. B20 TFLOPS (memory-bound)
  3. C10 TFLOPS (memory-bound)
Show answer and explanation

Answer: B. 20 TFLOPS (memory-bound)

In the Roofline model, attainable performance is the smaller of the peak and bandwidth × arithmetic intensity. 2 TB/s × 10 FLOP/byte = 20 TFLOPS, below the 100 peak, so this workload is memory-bound with a 20 TFLOPS ceiling. Peak ÷ bandwidth = 50 FLOP/byte is the boundary (the ridge point); only workloads with intensity at or above it can reach peak performance.

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. With intensity below 50, peak is out of reach.
  • B. Correct. 2 TB/s × 10 = 20 TFLOPS.
  • C. That assumes 1 TB/s of bandwidth.