The Roofline Performance Bound

Calculate whether peak arithmetic or byte movement bounds an operation under a specified bandwidth and intensity model.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Count operations per byte crossing a selected boundary
  2. A bound can diagnose which improvement can matter

Count operations per byte crossing a selected boundary

If an implementation performs \(W\) operations and transfers \(Q\) bytes across an interface, its arithmetic intensity is \(I=W/Q\). Bandwidth \(B\) gives an upper rate \(BI\), while arithmetic units give a peak \(P\). The combined bound is

\[ \mathrm{rate}\le\min(P,BI). \]

At \(P=1000\) GFLOP/s, \(B=100\) GB/s and \(I=4\) FLOP/byte, the bandwidth ceiling is 400 GFLOP/s. The balancing intensity is 10 FLOP/byte.

A bound can diagnose which improvement can matter

Removing arithmetic instructions may not help until movement is reduced. Matrix tiling can increase the intensity by reusing data. Measuring a different hierarchy interface changes both \(Q\) and effective \(B\). Dependency delays, instruction mix and insufficient parallel requests can keep actual speed below the bound. Issue bounds capture some of those other constraints.[1]

References

  1. Samuel Williams, Andrew Waterman and David Patterson, Roofline: An Insightful Visual Performance Model for Multicore Architectures ↩