P · Prerequisite — the vectors chapter · 2/38

Matmul is the force

C = AB. Hover a cell. ~90% of GPU arithmetic.

play
A m×k
×
B k×n
=
C m×n
hover a cell of C to see its row × column · click it to accumulate
output cells9
MACs / cell4
total MACs36
FLOPs ≈ 2mnk72

Hover a C cell. Click it. That multiply is ~90% of GPU work.

C_{ij} = Σ_k A_{ik} B_{kj}

FLOPs = 2mnk. Intensity = FLOPs / bytes. That ratio picks the roofline.