Skip to content

Phase 6: differential fuzzing, regression corpus, verification docs - #6

Merged
deaneeth merged 1 commit into
feat/phase-5-gpu-optsfrom
feat/phase-6-fuzzing
Oct 26, 2026
Merged

deaneeth merged 1 commit into
feat/phase-5-gpu-optsfrom
feat/phase-6-fuzzing

Conversation

@deaneeth

Copy link
Copy Markdown
Member

Stacked on feat/phase-5-gpu-opts. Merge the stack in order, starting from the bottom PR.

Commits in this PR:

  • Phase 6: differential fuzzing, regression corpus, verification docs

Add a differential fuzzer that compiles random programs for gpu -O0/-O1/-O2
and tpu -O0/-O1, runs every result on the real simulator/RTL, and requires
bit-exact agreement with the numpy oracle of the source program, untouched
R5-R7, estimate bounds containing the measurement and the TPU cost model
equal to the measured cycles. Failures are shrunk by Hypothesis into
tests/regressions/_last_failure.tiny.

Add a 13-program corner-case corpus (K=1, one output column, 1x1, rank-1
values, outputs that are inputs or constants, duplicate subexpressions,
partial tiles, zero constant tiles, K=20, 900 threads) replayed on every
backend, plus a nightly workflow that runs 5000 fresh programs and uploads
the shrunk failing program. Two independent 5000-program runs were green.
Document every verification layer in docs/VERIFICATION.md.
@deaneeth
deaneeth merged commit b7b1efc into feat/phase-5-gpu-opts Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant