Commit Graph

3 Commits

Author SHA1 Message Date
2a802ec630 bench_wave64.py: a configuration that fails partway is a failure
Each process added its output hash to `hashes` before a later process of
the same configuration could fail. The failed configuration got no row,
but its partial hashes stayed, so the "every configuration ran" check
passed, it was compared as if it had run, and the script could print
"emulated output equals the reference" and exit 0. A reference that
failed after its first process was used as the reference all the same.

Hashes are now kept only for a configuration whose every process ran.
The test replaces the builds and the GPU runs with stubs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:01:32 -03:00
047d4d9b60 Wave64 emulation: guard the chained voted branch, more tests, bench reference
Raise Unsupported when a voted branch's segment was not started by the vote's
own round. New tests cs_w64x_mask_reuse2 (EXEC reuse, read after a store,
half of a mask pair rewritten, chained successor starting with a conflicting
load) and cs_w64x_chain_barrier (chained successor starting with s_barrier),
plus a translation test counting mask exchanges. bench_wave64.py reports a
missing bench line readably and compares against the native AMD output.
design.md: how the rules were confirmed, current GPU counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:52:35 +01:00
cdaef79a7d Wave64 emulation: fewer rounds (reuse mask exchanges, chain voted branches), benchmark
A whole-mask read of a register value already exchanged in the block reuses
the exchange; a block ending in a voted branch runs its successor in the
round that reads the vote. Adds scripts/bench_wave64.py, cs_bench_mix,
VKC_BENCH timing in vk_compute_test and the cs_w64x_mask_reuse test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:52:35 +01:00