wint_diff: GFX12 has no always-true/false VALU compare; skip those programs by name #197

Closed
github-bot wants to merge 1 commit from github-bot/gh-197 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:40 UTC · original
ubiquitarianism:old-pr/9928 → main · +92 −6 · 4 files · 1 commits · closed without merging

Carried over from old PR 9928 by AC-Storm-YT in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9928, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
AC-Storm-YT: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


The original PR had no description.

**@⁠Andretuta** on GitHub · 2026-11-24 02:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/197) `ubiquitarianism:old-pr/9928` → `main` · +92 −6 · 4 files · 1 commits · closed without merging > Carried over from **old PR 9928** by `AC-Storm-YT` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9928`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `AC-Storm-YT`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- _The original PR had no description._
GFX12 dropped v_cmp_{t,f}_{i32,u32,i64,u64} and their v_cmpx_ forms: AMD LLVM 23
(rocm-sdk-core 10.0.0) assembles all sixteen for gfx1036, gfx1100 and gfx1150 and rejects
every one for gfx1201. wint_diff emits v_cmp_t_u32 and v_cmp_f_i32 (and the v_cmpx_ forms),
so on an RX 9070 XT those programs were counted as "assembler rejected", and the whole batch
carried the first error's text: on main all 69 skips of seed 1 read "... v_cmp_t_u32",
including the programs that only use v_cmp_f_i32.

- tools/hw_oracle/asm.py: GFX12_VALU_REMOVED lists the sixteen. valu_skip_reason() names
  them on gfx12xx (and ignores an _e32/_e64 suffix); program_skip_reason() returns the
  first such reason of a program's lines. The GFX10.1-only mads are unchanged.
- tools/wint_diff.py: hw_results() sends only the programs the GPU can run; the others get
  their reason and are never assembled. The run and the shrinker both use it.
- Tests: the sixteen, the suffixes, gfx1013/1036/1100/1150 unchanged, and hw_results with a
  fake oracle (gfx1201 assembles only the program it can run; gfx1036/1150 run all four).

RX 9070 XT, `wint_diff.py --oracle hw --programs 500 --wave both`: seeds 1 and 2 give the
same 431 / 426 passes and 69 / 74 skips as main, 0 mismatch; the skips now read v_cmp_f_i32
29, v_cmp_t_u32 25, v_cmpx_f_i32 8, v_cmpx_t_u32 7 (seed 1) and 25 / 25 / 12 / 12 (seed 2).
gfx1036: 500/500 on both seeds, as on main.

AI-assisted (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:48:27 +00:00
Author
Owner

@⁠fin-github on GitHub · 2026-11-24 21:58 UTC · original

Taken over in #1332: the same commits cherry-picked onto current main with -x, original author kept, tests rerun there (they still fail on main without the change). The draft can be closed as #17 describes. AI-assisted (Claude Code).

**@⁠fin-github** on GitHub · 2026-11-24 21:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/197#issuecomment-7145633890) Taken over in #1332: the same commits cherry-picked onto current `main` with `-x`, original author kept, tests rerun there (they still fail on `main` without the change). The draft can be closed as #17 describes. AI-assisted (Claude Code).
github-bot closed this pull request 2026-11-27 04:04:15 +00:00
Author
Owner

@⁠Andretuta on GitHub · 2026-11-27 04:01 UTC · original

Closing carried-over draft: taken over in #1332 (OLD-9928).

**@⁠Andretuta** on GitHub · 2026-11-27 04:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/197#issuecomment-7209463459) Closing carried-over draft: taken over in #1332 (OLD-9928).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.