the.ai

Systems / Hardware

verified

Arithmetic Intensity

Every kernel does some arithmetic and moves some bytes. Divide one by the other and you get a single number that says which of the two is the bottleneck. Below the machine's own ratio the kernel is waiting on memory and extra arithmetic is free; above it the arithmetic is the limit and saving bytes buys nothing.

Viz primitive · budget-splitcompute-time = 40

compute-time holds 20% of the budget; rest holds the remaining 80%.

Time a kernel spends on arithmetic against time it spends moving bytes, both in microseconds. Drag the compute time up to watch a memory-bound kernel cross into being compute-bound.

40

Reviewed by opendroid · 2026-08-04

  • arXiv:2205.14135 — FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • arXiv:2007.00072 — Data Movement Is All You Need: A Case Study on Optimizing Transformers
  • arXiv:2211.05102 — Efficiently Scaling Transformer Inference