“Know how to solve every problem that has been solved.” “What I cannot create, I do not understand.” — Richard Feynman
What you need to know first 3 concepts, 2 layers

The requisite-knowledge inventory for this page, bottom-up: the primitives at the base, combined upward until you reach what this page assumes. Skim the layers you already own; start wherever the ground gets unfamiliar.

  1. base
  2. L1
  3. you are here

Memory Bandwidth Basics

What You'll Learn

Mental Model

Latency: How long one operation takes (time to first byte)
Bandwidth: How much data can be transferred per unit time (sustained throughput)

Memory has high latency (100-300 cycles) but also high bandwidth (tens of GB/s). For large sequential operations, bandwidth matters more than latency.

Why Streaming Kernels Are Bandwidth-Bound

Operations that process data sequentially (copy, add, multiply) are limited by how fast data can be moved from memory, not by computation. The CPU can compute faster than memory can supply data.

Roofline Intuition

The roofline model classifies kernels as:

Operational intensity (operations per byte) determines which limit applies. Low intensity → bandwidth-bound. High intensity → compute-bound.

Checklist