Unit 3 of 12 · about 3 hours · measure

Clocks, power, interference and environment capture

Boost clocks and other work on the same GPU can change during a benchmark. The environment is part of the result, not an optional appendix.

You'll be able to

  • Capture hardware, software, build and workload identity alongside raw samples.
  • Identify power, thermal, clock and background-work changes that weaken a comparison.
  • Measure under a documented isolation policy without assuming an idle process list proves isolation.

Covers

Clock, power, thermal and throttling stateProcess, device, multi-tenant and background-work interferenceMachine, driver, toolkit, compiler, library, flags and code revision capture
1

Read

In this order, only the parts listed

0 of 2 done

  1. CUTLASS: environment and data-dependent powerCUTLASS GEMM Performance Measurement Methodology

    Documentation updated September 21, 2026: Testing Methodology Overview and Matrix Fill Methodology

    Read fixed-frequency tests as a controlled methodology, not an instruction to change shared-machine clocks. Zero-filled inputs are not a representative default, even with a frequency setting.

  2. Machine and build identityGPU Microbenchmark and Kernel Suite - Harness and Instrumentation

    Core requirements, harness item; Failure-injection requirements, thermal/interference run; Measurement requirements; Rubric, Reproducibility

2

Focus on

  • Record GPU identity and compute capability, driver, toolkit, framework and compiler versions, flags, code revision, workload seed and precision settings. Driver-supported CUDA and the installed toolkit are not the same version.
  • Save sampled clocks, power and temperature with trial timestamps. Missing or unsupported telemetry must be marked unavailable, not zero.
  • On a GPU that also drives a desktop or serves other users, run one experiment at a time, keep each short and release allocations on exit. The compositor and other clients still run beside yours, so record what else held the GPU.
  • Compare identical input distributions. Fill patterns can change switching activity and power; a fixed power limit does not imply fixed clocks.
Common mistakes · 3
  • Using nvidia-smi's displayed CUDA support level as the compiler version.
  • Assuming an idle process list, or an agreement to take turns, rules out the desktop compositor and other GPU clients.
  • Deleting slow samples after seeing a thermal or interference event instead of preserving and labeling the affected run.
3

Try it yourself

Closed-book, before checking anything

Attach a machine/build manifest and timestamped clock, power and temperature observations to one short timing run. Record background processes and whether clocks can be controlled without privileges. Repeat the same run later with interleaved variants; explain any state differences without attributing every fluctuation to a single cause.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Does a fixed power limit make two runs use the same clock?Answer

    No. Dynamic voltage and frequency control responds to temperature, workload and power demand. Measure clocks during the run.

  2. 2.Why is recording only the GPU model insufficient?Answer

    Driver, compiler, libraries, flags, power state and workload can all change the generated work or its runtime.

  3. 3.What can you claim when power telemetry is unavailable?Answer

    Timing and the state you actually observed. You cannot infer an energy result or rule out power effects from missing readings.

You're done when

A retained raw run can be matched to its workload, revision, toolchain, machine-state observations and stated isolation limits without relying on memory.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 10 more in the section

Also in this section

  • AI Systems Performance Engineering - Chapters 6 to 8Chris Fregly · primary

    Read Chapters 6 to 8: GPU architecture and occupancy, profiling and tuning memory access, and occupancy, warp efficiency and instruction-level parallelism, with their Nsight Systems, Nsight Compute and roofline workflows. Treat every quoted speedup as a hypothesis for your own hardware.

  • AI Systems Performance Engineering companion code - Chapters 6 to 8Chris Fregly · required

    Use selected baseline and optimized pairs from code/ch06, code/ch07 and code/ch08 plus the shared benchmark and verification machinery. Run only hardware-compatible paths, inspect the tests first, retain raw artifacts and document any guard or unavailable feature.

  • Nsight Systems User GuideNVIDIA · required

    Learn capture, statistics, CUDA API and GPU timeline views, NVTX ranges and report export. Produce one trace that attributes a host gap, transfer or synchronization cost without using the kernel profiler first.

  • Nsight Compute Profiling GuideNVIDIA · required

    Study the profiling model, replay, metric collection, sections, roofline and source correlation. Collect the smallest counter set that can falsify your bottleneck hypothesis and record profiler overhead.

  • Compute SanitizerNVIDIA · required

    Run memcheck plus applicable racecheck, initcheck and synccheck cases against seeded defects. Preserve minimal reproducers and regression tests, and distinguish unsupported checks from a clean result.

  • Roofline: An Insightful Visual Performance ModelUC Berkeley · required

    Read the original model and construct one roofline plot with explicit peak assumptions, useful operations and bytes. Add measured points and explain gaps from launch, resource, cache or instruction effects.

  • CS336 Assignment 2 - Section 2.1 ProfilingStanford University · support

    Do the benchmarking_script, nsys_profile, mixed_precision_accumulation and memory_profiling problems on a model size that fits your GPU instead of the handout's B200 settings. Keep raw timings, traces and memory snapshots.

  • TensorTonic Language Modeling from Scratch - Measure Kernel Timeline UtilizationTensorTonic · support

    Solve the timeline-utilization problem after the timeline unit, then repeat the calculation on a trace you captured yourself.

  • PyTorch 2.14 numerical accuracy and tensor testingPyTorch · reference

    Read the numerical-accuracy introduction, Extremal values, non-finite inputs and Ampere precision sections, plus the assert_close contract and make_tensor parameters. These supply current comparison semantics missing from the pool's project checklist.

  • CUDA 13.4 Floating Point and IEEE 754NVIDIA · reference

    Read sections 2.2, 3.1 to 3.2 and 4.4 for reduction order and single-precision flush-to-zero flags. Do not use the historical CPU-has-no-FMA statements as current hardware facts.