Expand bounded GPU compatibility coverage #35
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!35
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/35/head"
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?
@bmjask on GitHub · 2026-11-22 14:41 UTC · original
bmjask:codex/gpu-compatibility→main· +31468 −69 · 25 files · 1 commits · closed without mergingSummary
Verification
Current boundary
The validation shell remains deliberately disconnected from production eligibility. The latest aggregate survey reports 2,766 programs blocked by the current group-shared state limit and 6,516 by unsupported per-slot lowering. Every observed scalar operation is covered; the first remaining unlowered family is Memory for all 9,282 programs. Memory-family slot lowering and the shared-state limit are the next measured blockers. Deterministic redacted memory-frequency reporting identifies scalar-buffer, vector-buffer, and scalar loads as the dominant remaining families. Only 12 decoded relative-move vector instructions remain outside per-slot vector lowering. A checked buffer-backed vector-register layout exists as a disconnected prerequisite, but the epoch shell still needs an atomic migration of its vector access sites before relative moves or shared-state-limited programs can be enabled safely. Production activation and dispatch parameters remain unavailable without the missing executable/runtime evidence.
Notes
This is compatibility-layer work only. It contains no protected content, keys, package decryption, or title-specific data.
@grahamster2 on GitHub · 2026-11-22 20:55 UTC · original
Ran this on the two GPUs it's meant for, merged onto current
mainplus #41 to pick the adapter,cargo test --workspace --release --no-fail-fast, withXCL_SAMPLE_RPFset to a retailshaders.rpf.RTX 3080 (D3D12 wave range 32..32, mesh tier 1): 546 passed, 2 failed. The 2 failures are the existing wave64-MS ones (
retail_mesh_pipelines_through_the_hook0 / 7, and the mesh half of the background-build test), the same as onmain. Most of the new wave64 coverage doesn't actually run there, though:mesh_epoch_hlsl.rs,validation_epoch_hlsl) is[WaveSize(64)] [numthreads(128,1,1)]and reads lanes throughWaveReadLaneAt(.., source < 64), so it's a native-wave64 form. Its 19 GPU checks compile it and then return early on!wave64_supported(), and libtest counts them as passed. The same goes forgpu_vector_relative_source_destination_moves(behindgpu_ready()) and the wave64 parts ofmesh_program/mesh_slot.mesh_dispatch,mesh_lane,mesh_reduce,mesh_scalar,mesh_vgpr,mesh_vector,mesh_memory, ...) do run on it and pass. No device removal or TDR.So on NVIDIA nothing runs a two-wave epoch yet. I don't think that's a problem for a validation-only PR, but the PR text ("live Wave64 tests cover two-wave scheduling ...") could say these need a wave64 adapter. I've proposed on #42 that such skips get printed and counted.
Radeon RDNA2 iGPU (Ryzen 5 7600X, driver 24.30.66; wave 32..64, no mesh shaders): 479 passed, 69 failed.
66 fail with
CreatePipelineState (mesh): The parameter is incorrect(unwrap on the runner's mesh draw): 26 inmesh_vector, 15mesh_scalar, 14mesh_memory, 5mesh_dispatch, 2mesh_alloc_export, and 1 each inmesh_export,mesh_lane,mesh_reduce,mesh_vgpr. These tests need a check likemesh_ready()inrecomp/tests.rs(runner::mesh_shaders_supported(), added in #41; onmainthe runner doesn't readMeshShaderTieryet).3 are real numeric differences on this native-wave64 adapter (none of them uses mesh), probably worth a look since this is the only kind of hardware where the epoch shell runs:
float_math_family_matches_mature_domains_and_wave64:close(at(absolute_lane, 9), input.log2())fails (mesh_epoch_hlsl.rs:2095)fma_mix_modes_match_cpu_fused_edges_and_wave64: got0x51517E00, expected0x5151FE00(:2324)global_load_last_dword_succeeds_and_oob_preserves_destination: got0xA5A55A5A, expected the preserved0x51515151(:2586)I haven't dug into these. The OOB one looks like the destination isn't preserved when the load is refused, or the bound check passes on this driver. Happy to run a patched branch on either GPU if that helps.
main+ #41 on the same iGPU passes everything (354 passed).@Foniass on GitHub · 2026-11-22 22:47 UTC · original
Tested on RTX 5070 Ti only (Blackwell, driver 32.0.16.2114, D3D12 wave range 32..32, mesh tier 1). The RDNA2 iGPU on this machine is disabled, so it wasn't tested. The branch was merged onto
main521ec08(clean merge) and run withcargo test --workspace --release --no-fail-fast -- --test-threads=4, noXCL_SAMPLE_*set. Hardware details are in #42.main521ec08main+ #35mesh_vector::tests::decoded_final_float_math_edges_match_actual_u6(mesh_vector.rs:9072). Register 3 isv_fract_f32of +inf. The CPU model (value - value.floor(), :3434) expects NaN; the GPU gives0x7F800000(+inf). The stage-B lowering emitsfrac(x)(mesh_vector.rs:4159), and on this driverfrac(+inf)is +inf. Other forms I tried there:x - floor(x)also gives +inf (it ends up as the samefrc).min(x - floor(x), asfloat(0x3F7FFFFFu)), the form offract_fin emit.rs, gives0x3F7FFFFF, becauseminreturns the non-NaN operand.(isinf(x) ? asfloat(0x7FC00000u) : frac(x))passes, and all 218mesh_tests then pass on the 5070 Ti.gpu_ready()(main has 40; the new one isgpu_vector_relative_source_destination_moves). Another 29 compile their HLSL and then return on!wave64_supported()without a message: 28 inmesh_epoch_hlsl.rs, 1 inmesh_epoch_vgpr_buffer.rs.mainnow hasrunner::skip_test(#51), which would make these show up asSKIPPEDafter a rebase. The mesh-dispatch families (mesh_vector,mesh_scalar,mesh_memory, …) do run here.Pull request closed