Repository navigation
fix(perf-integrity): unify timing modes, compare gates, runtime guards, and telemetry - #149
Open
SamuelReeder wants to merge 1 commit into
Open
SamuelReeder wants to merge 1 commit into
SamuelReeder wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack
users/sareeder/perf-integrity-fixes→main): Performance-integrity bug fixes (timing unification, compare gates, runtime guards, telemetry, analytical v2, DVC setup)users/sareeder/perf-integrity→users/sareeder/perf-integrity-fixes):ALMIOPEN-3437— Calibrated cold-cache sweep, VRAM-safe rotating buffers, and versioned input recipesusers/sareeder/knob-sweeps→users/sareeder/perf-integrity): Strict--knobvalidation,--sweep-knobs, and--knob-candidatesSummary
Fixes performance-integrity bugs across timing, validation, comparison, runtimes, telemetry, analytical metrics, and setup on top of
main(1e6c8a5), without changing default input distributions or cache modes.staged/eventsfallback (MixedModeFallbackError/MIXED_MODE_RERUN_REASON); refusesvs_bestranking across mixed(mode, launch_mode)and shows launch modes in the legend; gatescompareontiming.mode,timing.launch_mode, and validation state (passedvsunchecked), warns ontimermismatches, labels failed-only B rowsB failed, handles missing quartiles asunknown spread, adds1e-12threshold boundary tolerance, and adds--strict-coverage.uncheckedrows from ranking when validated rows exist; ignores nonpositive medians when positive siblings exist.use_graph=Falseon rocKE auto where supported (recordinglaunch_mode) and releases eager 3D scratch per iteration viaafter_iteration; guards AITER OPUS against nonpositiveattn_scale(AITER_DISABLE_FMHA_OPUS=1aware), excludes single-query asymmetric GQA decode fromck/asm_v3, isolateshipconfigfrom profiler env vars, and recordstiming.timed_work_notes; surfaces PyTorch varlen SDPA per-batch output copy (varlen_per_batch_copy) intiming.timed_work_notes; preservesPYTORCH_TUNABLEOP_*in tuned PyTorch children while disabling it on OOTB runs; isolates--fresh-stateoracle caches and forwards--fresh-stateto PyTorch children; keeps GPU reference outputs resident during OOTB timing regardless of profiling flags and frees them before profiling children run; resolves ragged varlen layouts before allocation inhipdnn_tuned_child; preserves native C signal handlers during teardown.amdsmibeforestart_runtime()importstorch, requires non-empty handles inis_amdsmi_available(), stops permanently caching pre-HIPNonehandles, and samples clocks/power/throttling during timed loops (GpuSmiProbe.sample_during()); bumpsANALYTICAL_FORMULA_VERSIONto2(missingdims→None, scalardims=[]→ 1, known-zero rates →0.0, ambiguous packed paged diagonal SDPA →None); adds zero-sample timer-resolution warning and non-finite IQR guards; setsDVC_GLOBAL_CONFIG_DIRto<workspace>/dvc-configinsetup_env.py.Risk Assessment
Risk Level: 2 / 5 — Correctness and integrity fixes across 35 files; preserves default
warmcache mode and defaultU[0, 1)inputs.Device / Architecture Coverage
gfx90a(MI210, local): Full unit suite + live MI210 checks foramdsmiin-run telemetry, PyTorch--oracleTunableOp preservation (1.09x),--pytorch-dispatchintegration, and validation completeness.gfx950: AITER/rocKE live runtime paths verified via unit tests here; full hardware coverage runs on thegpu-tests (gfx950, full suite)CI lane.Testing Summary
black --check(25.12.0): passed on all 31 modified/added Python files.PYTHONPATH=src .workspace/.venv/bin/python -m pytest tests/unit -m "not gpu" -q): 2,276 passed, 1 skipped, 0 failed.Testing Checklist
black --check(25.12.0) on all modified/added Python files2,276 passed, 1 skipped)gfx90a) targeted GPU verificationgpu-tests (gfx950, full suite)CI lane