Why it matters

Compute-bound ops are the goal. Understanding shapes optimization.

Advertisement

The architecture

Large matmul: arithmetic intensity high.

Attention QK^T + AV: compute-bound.

Compute-boundLarge matmulcompute-heavyTensor coreshigh throughputLower precisionmore FLOPs per secondWell-utilized compute-bound = near peak FLOPs; monitor via nvidia-smi
Compute-bound.
Advertisement

How it works end to end

Tensor cores: bf16/fp8 accelerate.

Batch dim > 128 typical for tensor core efficiency.

Kernel launch overhead: cudaGraphs to hide.