Repository navigation
hw_oracle: work with 2024 HIP runtimes (code object v5) and LLVM 23's true16 - #1373
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
LLVM 23 writes code object v6, which amdhip64_6.dll refuses with error 209: retry the probe as v5 and keep that version for the run. LLVM 23 also wants v8.l for 16-bit operands on GFX11: ask the assembler once, and use that spelling for the f16 ops the oracle's tools run. Tested on a Radeon 780M (gfx1103), driver 32.0.11020.1002. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Independent CPU/static verification only (no GPU or AMD hardware claim), against main
The CPU side looks consistent with the stated fallback ordering. |
Contributor
|
Tested
No game files. |
2 tasks done
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.
Claimed in the coordination issue as: #1218 (comment)
What and why
tools/hw_oracledidn't work on a Windows PC with a 2024 AMD driver and LLVM 23:amdhip64_6.dllrefuses athipModuleLoadData, so the oracle reported itself unavailable. On a 209 the probe now retries as v5 (-mcode-object-version=5) and keeps that version for the run. A 209 that stays, or any other error, is still reported.v8.lfor 16-bit operands on GFX11, sof32_fuzz --oracle hwexited 2 with 81-87 rejected programs per seed. The oracle now asks the assembler once and uses that spelling only if it's needed. This covers the two f16/f32 conversions from the claim, plus the seven ops off16_trans_sweep.py, which failed the same way once the oracle could start.Runtimes that take v6 and assemblers that take a bare
v8get the same command and text as before. The Linux launcher is unchanged.Tested
Radeon 780M (gfx1103), driver 32.0.11020.1002 (
amdhip64_6.dll), Windows 11 26200, clang and lld 23.1.6 from conda-forge, MSVC 19.44. On conda-forge'sld.lldI used a local stub forlibxml2.dll, which that linker only calls for COFF manifests; the stub aborts if called, and it never was.salu_diff --oracle hw, 5000 programs, seeds 1-3 (seed 2 with--bfe-any --inline64)f32_fuzz --oracle hw, seeds 1-3crosslane_fuzz --oracle hw, 2000 programs, seeds 1-2, both wave sizestests/test_hw_oracle.py: 34 tests OK on the GPU (1 Linux-only skip). Without the AMD tools: 28 OK. The new tests againstmain's code: 2 failures and 7 errors.tests/test_f32_fuzz.py(25) andtests/test_crosslane_fuzz.py(29): OK.f32_fuzz --negative-control: 6 of 6 wrong models caught on each seed.Still failing on this driver, and not changed here:
f16_trans_sweep.pystops with HIP error 719, because it launches 1024 threads while the metadata saysmax_flat_workgroup_size: 256. #1345 already changes that line to 1024. With that one value patched in memory, the sweep runs (all 7 ops within 1 ulp of its reference) and its 11 tests pass. This branch merges cleanly with #1345.Not tested: AMD's own clang, a driver that takes v6, RDNA2.
Checklist
docs/design.md, with how it was confirmed. (No translator change; the oracle's setup notes indocs/shader_validation.mdare updated.)AI-assisted (Claude Code).
🤖 Generated with Claude Code