upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_constructor_oom_test.cpp
diff options
context:
space:
mode:
authorPyotr Karbovskiy-Kjellman <pyotr.kkjellman@gmail.com>2026-11-23 19:48:52 +0100
committerPyotr Karbovskiy-Kjellman <pyotr.kkjellman@gmail.com>2026-11-23 19:48:52 +0100
commitd14b22fe001ed9f2776b90ce657bd3408a66fa13 (patch)
tree44b263493be6f944926cfcda5647221673d805bf /runtime/test/vk_queue_constructor_oom_test.cpp
parent634370e59a2aa2e161136ed570d30ee9aeff9047 (diff)
fuzz: the gfx1170+ hardware gate is per family, not per tool
asm.rdna23_skip_reason refused every family of valu_fuzz.py and lds_fuzz.py on gfx1170+ with "the kernels here do not assemble for it" (fef61b247), which is false for most of what they emit. Checked by assembling what the generators produce with AMD clang 23 (300 programs per wave size each): - lds_fuzz assembles clean for gfx1150, gfx1170 and gfx1201 and runs there: on an RX 9070 (gfx1201, RADV/Mesa 26.2.6, the Linux DRM launcher) the default --oracle hw run gives wave32 500/500 match, wave64 250 match plus 250 skipped for the committed wave64 bpermute reason, 0 mismatch, 0 rejected. The blanket gate is gone; the per-program hw_skip_reason is the mechanism. - valu_fuzz --family f16 assembles clean for gfx1150, gfx1170 and gfx1201 (its op_sel lines are respelled by the runner's asm.opsel16_spelling there, which the assemble test now applies as well): 500 programs (1,000 kernels, both wave sizes) 1,000/1,000 match, 0 rejected, and the negative control catches all six wrong models. - valu_fuzz --family mem assembles clean for gfx1150 AND gfx1170 (every op kind, 0 of 600 kernels rejected per arch) but genuinely cannot on gfx12xx: GFX12 has no s_waitcnt_vscnt ("instruction not supported on this GPU") and rejects every buffer_load/store_b32/b64/b96/b128 form the generator writes ("operands are not valid for this GPU or mode"). The new hw_family_skip_reason refuses exactly that, naming both rejects, and --family mem --oracle hw exits 77 with them on gfx1201. Running the lds hardware suite un-skipped on gfx1201 found one more difference: a wave64 ds_permute_b32 reaches all 64 lanes on GFX12, like ds_bpermute_b32. Measured on the RX 9070: every lane sending to lane (l + 32) & 63 delivers its value to lane l ^ 32, all 64 lanes, with lane-to-itself sending as the control; a masked wave64 ds_swizzle keeps its halves there (0 mismatches in a 40-program --swizzle-exec run). Those programs are skipped on gfx12xx now too, and the new perturbation permute_wave64_cross models the crossing: under it every wave64 program that runs in the --extended seed-1 run matches (23 of 40, 0 mismatch). The lds negative control on gfx1201 reports the two wave64_cross perturbations as not detected -- on GFX12 they are the measured behaviour, so the canary cannot trip there; every other perturbation is caught. asm.rdna23_skip_reason stays for the OnHardware guards of f32_fuzz and f16_trans_sweep, whose MODE probes set IEEE and DX10_CLAMP, which gfx1170+ cannot encode (FUZZ-43); its docstring now says that instead of claiming the fuzzers use it. CPU: tests/test_valu_fuzz.py 88 OK, tests/test_lds_fuzz.py 37 OK, tests/test_lds_fuzz_hw.py 44 OK (its OnHardware class runs on the RX 9070: 44 OK), tests/test_lds_fuzz_cli.py 8 OK, tests/test_hw_oracle.py 59 OK (3 skips), tests/test_f32_fuzz.py 28 OK (1 skip), compileall clean, scripts/check_no_game_data.py clean. The AMD-clang tests ran with LEONIDA_AMD_CLANG=/opt/rocm/llvm/bin/clang. The semantic suite is unchanged: its 47 failures (test_image_atomics_guard, test_image_store_d16) are on the base commit too; nothing here touches the translator. AI-assisted (GLM-5.3).
Diffstat (limited to 'runtime/test/vk_queue_constructor_oom_test.cpp')
0 files changed, 0 insertions, 0 deletions