Unit 7 of 10 · about 3 hours · derive, measure

Speed-of-light bounds and held-out evaluation

A bound turns a timing into a verdict: near the ceiling means done, far means look again. Held-out tests stop the bound from describing one friendly shape.

You'll be able to

  • Derive a speed-of-light bound for a kernel from operation and byte counts over vendor peaks, with every assumption stated.
  • Compute SOL-score style efficiency against baseline and bound, and explain what 0.5 and 1.0 mean.
  • Design held-out shape, value, device and compiler-version tests that a speed claim must survive.

Covers

Hardware speed-of-light bound and attainable efficiencyHeld-out shapes, values, devices and compiler versions
1

Read

In this order, only the parts listed

0 of 3 done

  1. SOL-score and benchmark configurationSOL-ExecBench

    README at commit a9fa080: the SOL-score definition in src/sol_execbench/sol_score.py (0.5 at the optimized baseline, 1.0 at the SOLAR roofline); bench_config.example.json (10 warmup runs, 50 iterations); official evaluation on B200 with SM clocks locked at 1500 MHz and about 5 percent run variance

  2. Workload tolerances and the RMSNorm exampleSOL-ExecBench

    Per-workload tolerances with the bind-axes-to-shapes scheme; timing runs only after correctness passes; reference timing stays off by default

  3. Regime prediction and hardware labelingGPU Microbenchmark and Kernel Suite - Final Evaluation

    Milestone E: predict compute, bandwidth, launch and resource regimes and compare variants with interleaved raw trials; Measurement requirements: explicitly label measured hardware

2

Focus on

  • The SOL-score anchors 0.5 at the optimized baseline and 1.0 at the SOLAR roofline. A score of 0.5 is not half of peak; it means equal to the baseline.
  • The bound needs operation count, byte count and peaks from the same GPU. A B200 SOLAR number bounds nothing on an RTX 3050; re-derive with your peaks.
  • Reference timing is off by default because the reference can exceed an hour and dominate evaluation. Time the kernel only after it passes correctness.
  • Held-out means new shapes, values, devices and compiler versions. The harness binds axes to many workloads but fixes device and stack; the rest is your test matrix.
Common mistakes · 3
  • A tighter bound is always better. A bound with unstated assumptions (missing traffic, assumed clocks) misleads more than a loose honest one.
  • One workload row proves the bound. Batch 1 and batch 14509 differ by four orders of magnitude; the bound must hold across rows.
  • Beating the bound means a breakthrough. It means the bound missed traffic or the timer missed work; recheck both before celebrating.
3

Try it yourself

Closed-book, before checking anything

Closed-book, derive the speed-of-light bound for RMSNorm at one workload shape (operations and bytes over peaks), compute its SOL-score from a measured time, and list the four held-out axes with what each would break.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Write the SOL-score formula and evaluate it at the baseline time and at the bound.Answer

    With kernel time , baseline time and bound , . At , ; at , .

  2. 2.Your kernel takes twice the baseline time. Where does its SOL-score land, and what does that tell you?Answer

    Below 0.5: the gap ratio exceeds 1, so with . It is slower than the baseline regardless of its distance to the roofline.

  3. 3.Which four held-out axes must a speed claim survive, and which does the SOL harness fix?Answer

    Shapes, values, devices and compiler versions. The harness varies shapes and values across workloads but fixes the device and the software stack.

  4. 4.Why is reference timing disabled by default?Answer

    The reference can be dramatically slower, over an hour, and would dominate evaluation time. Enable benchmark_reference only when the speedup factor itself is needed.

5

Practice

  • SOL-ExecBench RMSNorm example: hand-derived bound

    definition.json with workload.jsonl and reference.py: hand-derive traffic and operations for one workload row and divide by your GPU peaks

    Read-only on a non-B200 GPU: derive the bound by hand and state which SOLAR assumptions you cannot reproduce. Do not claim an official SOL-score.

You're done when

Your hand bound, your SOL-score computation and your held-out list agree with the docs, and you can state which assumption each number depends on.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 12 more in the section
  • GPU Microbenchmark and Kernel Suite - Final EvaluationRoadmap-Final · required

    Complete Milestones C through F: CUDA and Triton kernel suite, failure injection, model-versus-profile reconciliation, strong baselines, real integration, full shape matrix, dispatch and fallback defense, clean reproduction and negative results.

  • SOL-ExecBenchNVIDIA · support

    Inspect how correctness and performance are compared with a hardware speed-of-light model. Apply one attainable-efficiency analysis to a project kernel and explain missing hardware or model assumptions.

Also in this section

  • AI Systems Performance Engineering - Chapters 2, 19 and 20 and the Appendix checklistChris Fregly · primary

    Read Chapter 2 for hardware generations, Chapters 19 and 20 on adaptive engine optimization and AI-assisted optimization, and use the Appendix checklist as an audit list for the final project. Treat every performance number as a hypothesis requiring your own evidence.

  • AI Performance Engineering - Hardware, Frontier and Source PolicyWafer · reference

    A dated map of current hardware and frontier work. Apply its Source Policy to every final claim, and use the hardware and frontier sections only to find primary documentation.

  • Performance Engineering and GPU Programming CheckpointRoadmap-Final · support

    Use the checkpoint as the final adversarial assessment after the source-derived route. Pass the real kernel, compiler or communication modification and end-to-end evidence clauses; ignore its ordering where it conflicts with this track.

  • KernelBench-VerifiedKernelBench-Verified Authors · required

    Study the evaluator hardening and baseline-parity failures found in the original benchmark. Run a very small task slice or port its adversarial testing ideas into the project evaluator; do not optimize for aggregate benchmark score.

  • MLPerf EndpointsMLCommons · support

    Read the endpoint-level scenario and load-generation rules. Borrow the workload and result-boundary discipline for the integrated benchmark without claiming an official MLPerf result.

  • CUDA Toolkit and Architecture Tuning GuidesNVIDIA · reference

    Use the current toolkit root, release notes and the tuning guide matching the measured GPU. Pin the document and toolkit versions, verify capability checks and rerun any claim affected by compiler or architecture change.

  • MIT 6.S894 Accelerated Computing (Fall 2025) - Lecture 10MIT · support

    Use Lecture 10 (Accelerated Computing Beyond NVIDIA and CUDA) for AMD GPUs, TPUs, NPUs and higher-level kernel languages as portability vocabulary.

  • Modern GPU Programming for MLSysMLC · depth

    Use the Blackwell GEMM and Flash Attention path as a real architecture-specific reconstruction target if compatible hardware is available. Otherwise produce a static mechanism audit and leave all performance claims open.

  • KernelBench - benchmark toolkit and task suiteScalingIntelligence · support

    Clone the repository and check one Level 1 problem with scripts/run_and_check.py in local mode; read EVAL.md for the correctness and timing guidance. Do not chase the aggregate score.

  • Etalon - holistic evaluation for LLM inferenceGeorgia Tech, Microsoft Research India and Intel AI Lab · support

    Read Section 2.2 for TTFT and TPOT pitfalls, then the fluidity-index design (Section 4.1) for deadline-based, SLO-qualified capacity.

  • ROCm Composable KernelAMD · support

    Read the repository README for the tile-based programming model, Tensor Coordinate Transformation and the four CK layers; open one tiled operator and map each CUDA term to its CK counterpart.

  • DistServe: Disaggregating Prefill and Decoding for Goodput-optimized LLM ServingZhong et al. (OSDI 2024) · support

    Read Section 1 with Figure 1 for per-GPU goodput: the highest request rate served while a target share of requests meets the TTFT and TPOT SLOs.