mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2326] hw_oracle/asm: fix GFX12 scalar load, per-kernel wave metadata, and validation #2330
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2330
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2326
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/hw-oracle-asm-gfx12-wave📝 Commits (1)
556f625hw_oracle/asm: fix GFX12 scalar load, per-kernel wave metadata, and validation📊 Changes
2 files changed (+77 additions, -5 deletions)
View changed files
➕
tests/test_hw_oracle_asm_gfx12.py(+59 -0)📝
tools/hw_oracle/asm.py(+18 -5)📄 Description
Claimed in the coordination issue as: HW-ORACLE-ASM-GFX12-RAW-LOAD-AND-KERNEL-WAVE-METADATA (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7193821284)
What and why
raw_kernel_text()intools/hw_oracle/asm.pyto emits_load_b64on GFX12 (as on GFX11) rather than GFX10'ss_load_dwordx2, and reuseis_gfx1170_or_later(arch).metadata()andmodule_text()intools/hw_oracle/asm.pyso mixed-wave batches emit per-kernel.wavefront_sizematching each kernel's.amdhsa_wavefront_size32instead of repeating the batch default wave size.wave(32or64),threads(>= 1),words(>= 1), and rejectboolvalues for integerKernelarguments inKernel.__init__().tests/test_hw_oracle_asm_gfx12.py.Tested
python -I tests/test_hw_oracle_asm_gfx12.py -v: 3 passed, 0 failed (detachedupstream/mainbaseline with only the new test file fails with 9 subtest/test failures).python -I tests/test_hw_oracle.py -v: 59 tests (OK, 3 skipped without AMD clang / libdrm gcc on host).python -I tests/test_hw_oracle_asm_strip.py -v: 1 passed, 0 failed.python -I tests/test_ci_registration.py: 16 passed.python -I tests/test_text_write_line_endings.py: 3 passed.python -I scripts/check_no_game_data.py,python -I -m compileall -q tools/hw_oracle/asm.py tests/test_hw_oracle_asm_gfx12.py, andgit diff --cached --check: passed.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.