roofline
Calculate a GPU kernel's performance bound from FLOPs and bytes moved, then estimate attainable TFLOPS and runtime using dtype and optional measured memory bandwidth.
Instructions
Roofline for a GPU (default: the first GPU in this machine). Pass the kernel's flops and bytes moved (bench()/verify() return them as roofline_inputs) to get the bound, the attainable TFLOPS and attainable_ms from the spec sheet. Pass measured_mem_gbs (the bandwidth a streaming copy reaches on this card under the repo's timer, see docs/platform-matrix.md; 1501 on the reference RTX 5090) to also get attainable_ms_measured, the floor a kernel can realistically get within 10% of. dtype: bf16 | fp16 | fp8 | fp32.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpu | No | ||
| bytes | No | ||
| dtype | No | bf16 | |
| flops | No | ||
| measured_mem_gbs | No |