Portability, Benchmark Audit and Performance Research
The final stage turns isolated optimizations into defensible engineering. It audits benchmark validity, handles architecture and compiler change, modifies a real kernel or compiler path, and reports workload-weighted gains, losses and portability limits.
Section 10 of 10 · 10 units · about 37 hours
By the end you can Reconstruct and modify one real kernel, compiler or communication path, pass hardened correctness and held-out workload tests, validate a performance model, show workload-weighted end-to-end impact, and defend negative regimes, fallback and portability limits from a clean reproduction.
Units
- Architecture documents, generation differences and vendor peaks as bounds4h
- AMD CDNA and ROCm vocabulary2h
- Capability matrices, fallback and compatibility tests3h
- Benchmark scenarios, MLPerf boundaries and endpoint goodput4h
- Auditing benchmarks: timing, baselines, parity and cherry-picking4h
- KernelBench, hardened evaluators and reward hacking4h
- Speed-of-light bounds and held-out evaluation3h
- Reconstructing a real kernel path and making one bounded change5h
- Protection, clean reproduction and claim-to-artifact links4h
- Workload-weighted impact, negative results and the design defense4h
Build it
Mini project · about 10 to 14 hours
Portability audit with a clean reproduction and a losing regime
Close the track as defensible engineering: a peak table with named clocks, an AMD dispatch defense, a tested fallback gate and a repaired misleading benchmark. Reconstruct one production path, rebuild clean, and file a workload-weighted report that keeps a loss.
- 1Build a per-kernel peak table that names its clock source, place each kernel against its ridge point, and file the regime prediction with the falsifier that would reject it.
- 2Write the dispatch defense so each path names its AMD CDNA and HIP counterpart. Test all three fallback branches on your GPU: native, forced portable fallback, and the explicit error below the portable minimum. Audit Hopper or Blackwell paths your GPU lacks statically.
- 3Pin the software stack for the full shape matrix, reporting boundaries, precision, distributions, held-out status and frequency per shape. Audit one deliberately misleading benchmark against timing boundary, baseline parity, distributions, held-out status and cherry-picking, and correct every flaw with matched precision shown.
- 4Run one KernelBench Level 1 problem in your harness, add one negated test that a reward-hacked kernel fails, and derive the SOL-ExecBench bound by hand for one row. List what each held-out axis would break; treat paths your GPU cannot run as reading only.
- 5Trace one production kernel through graph, IR, dispatch and profile with bytes, launches and resources at each link. Write one bounded change with a predeclared mechanism and the profiler signal that would falsify it, tested on unseen shapes.
- 6Regenerate the full shape matrix from a clean checkout with raw samples and claim-to-artifact links for every table entry. Exercise every protection with an injected-defect test it catches, for example an unsupported dtype reaching the fast path.
- 7Build the workload-weighted table with one losing row kept, and write the three-question defense: a stronger baseline, an alternate explanation, and the maintenance cost. State the dispatch choice per kernel family from the clean reproduction.
What you hand in
- The peak-bound table with named clocks and ridge points, and the AMD dispatch defense with fallback tests.
- The scenario-fixed shape matrix, the repaired misleading benchmark, and the KernelBench plus SOL notes.
- The reconstructed path with its bounded change, the clean-build regeneration, and the weighted report with a loss.
How to check it
- Self-grade with the rubric below
How it's graded
Bounds and fallback
Pass: Peaks name clocks with ridges derived, each path names its AMD counterpart in your own tests, and all three fallback branches pass.
Great: The table states which features your GPU cannot run and why they remain static audit.
Audit honesty
Pass: The shape matrix fixes the stack with boundaries and frequency stated, the misleading benchmark is repaired on all five audit points with matched precision, and paths your GPU cannot run are marked reading only.
Great: Held-out shapes and values are named with what each would break.
Reproduction and judgment
Pass: The clean checkout regenerates tables with raw samples and claim links, each protection has an injected-defect test, and the weighted report keeps a losing row with its defense.
Great: The per-family dispatch choice names its maintenance cost.
Resources
- AI Systems Performance Engineering - Chapters 2, 19 and 20 and the Appendix checklistChris Fregly
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.
- GPU Microbenchmark and Kernel Suite - Final EvaluationRoadmap-Final
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.
- KernelBench-VerifiedKernelBench-Verified Authors
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.
- Performance Engineering and GPU Programming CheckpointRoadmap-Final
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.
- SOL-ExecBenchNVIDIA
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.
- MLPerf EndpointsMLCommons
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.
- MIT 6.S894 Accelerated Computing (Fall 2025) - Lecture 10MIT
Use Lecture 10 (Accelerated Computing Beyond NVIDIA and CUDA) for AMD GPUs, TPUs, NPUs and higher-level kernel languages as portability vocabulary.
- KernelBench - benchmark toolkit and task suiteScalingIntelligence
Clone the repository and check one Level 1 problem with
scripts/run_and_check.pyin local mode; readEVAL.mdfor 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
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
Read the repository
READMEfor 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)
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.
- Modern GPU Programming for MLSysMLC
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.
- AI Performance Engineering - Hardware, Frontier and Source PolicyWafer
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.
- CUDA Toolkit and Architecture Tuning GuidesNVIDIA
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.