<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/tools/lds_fuzz.py, branch ci/exclude-legacy-cpp-runtime-tests</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-26T11:53:05+00:00</updated>
<entry>
<title>lds_fuzz: guard --model-only/--keep/--only flags and enforce UTF-8 subprocess I/O</title>
<updated>2026-11-26T11:53:05+00:00</updated>
<author>
<name>kirigayakazima</name>
<email>46666711+kirigayakazima@users.noreply.github.com</email>
</author>
<published>2026-11-26T11:53:05+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=9a678ef4052d2f6373b8de16651c86aefa6ef14e'/>
<id>urn:sha1:9a678ef4052d2f6373b8de16651c86aefa6ef14e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/main' into gfx12-fuzz-gate</title>
<updated>2026-11-23T18:52:01+00:00</updated>
<author>
<name>Pyotr Karbovskiy-Kjellman</name>
<email>pyotr.kkjellman@gmail.com</email>
</author>
<published>2026-11-23T18:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d5564ef07bdcf559b1f07bae388736b2473d1ae5'/>
<id>urn:sha1:d5564ef07bdcf559b1f07bae388736b2473d1ae5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fuzz: the gfx1170+ hardware gate is per family, not per tool</title>
<updated>2026-11-23T18:48:52+00:00</updated>
<author>
<name>Pyotr Karbovskiy-Kjellman</name>
<email>pyotr.kkjellman@gmail.com</email>
</author>
<published>2026-11-23T18:48:52+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d14b22fe001ed9f2776b90ce657bd3408a66fa13'/>
<id>urn:sha1:d14b22fe001ed9f2776b90ce657bd3408a66fa13</id>
<content type='text'>
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) &amp; 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).
</content>
</entry>
<entry>
<title>docs: point lds_fuzz at its --help usage line (#6577)</title>
<updated>2026-11-23T18:25:47+00:00</updated>
<author>
<name>凉开水</name>
<email>88872603+liang-kai-shui@users.noreply.github.com</email>
</author>
<published>2026-11-23T18:25:47+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=a910490144f17b9ddb80d08f37ef3fd74a6b3a96'/>
<id>urn:sha1:a910490144f17b9ddb80d08f37ef3fd74a6b3a96</id>
<content type='text'>
Squash-merged after diff review of PR #6577</content>
</entry>
<entry>
<title>Merge pull request #4519 from Størm</title>
<updated>2026-11-23T04:15:30+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=a90289cbb4dd9761edbf0c44553aa5a4eead2c8d'/>
<id>urn:sha1:a90289cbb4dd9761edbf0c44553aa5a4eead2c8d</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #3978 from tedin7</title>
<updated>2026-11-23T04:10:07+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:10:07+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=830cd6c71a020f84757c9cf6b77a1fc25d1a333c'/>
<id>urn:sha1:830cd6c71a020f84757c9cf6b77a1fc25d1a333c</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #3954 from errusso</title>
<updated>2026-11-23T04:09:52+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:09:52+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=bdf45c603043f188c5dfc1118961cd09ea8423ab'/>
<id>urn:sha1:bdf45c603043f188c5dfc1118961cd09ea8423ab</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>lds_fuzz: run the hardware oracle on GFX12 (RDNA4); wave64 ds_bpermute reaches all 64 lanes there</title>
<updated>2026-11-23T01:58:48+00:00</updated>
<author>
<name>Størm</name>
<email>52797150+AC-Storm-YT@users.noreply.github.com</email>
</author>
<published>2026-11-23T01:58:48+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=dbe5070d185d1c216e21e1f23b80156e7f2b3ad8'/>
<id>urn:sha1:dbe5070d185d1c216e21e1f23b80156e7f2b3ad8</id>
<content type='text'>
On an RX 9070 XT (gfx1201) `lds_fuzz.py --oracle hw` stopped with "the assembler rejected
every program in a chunk: ... s_barrier", and programs with a ds_cmpst were skipped because
ds_cmpstore's operand order was only measured on gfx1150.

- asm.sync_lines: GFX12 has no s_barrier, so a barrier is `s_barrier_signal -1` then
  `s_barrier_wait -1`, and the LDS wait is `s_wait_dscnt 0` instead of the legacy
  `s_waitcnt lgkmcnt(0)` encoding. lds_fuzz's hardware kernels go through it.
- asm.ds_line swaps ds_cmpstore[_rtn]_b32's data operands on GFX12 as on GFX11. Measured on
  gfx1201: with 7 in the dword, data v1 = 9, v2 = 7 stores 9 and v1 = 7, v2 = 9 keeps 7, for
  the rtn and the non-returning form (gfx1036's ds_cmpst does the opposite).
- Measured on the way: a wave64 ds_bpermute_b32 reaches all 64 lanes on GFX12, where RDNA2
  and gfx1150 keep each 32-lane half separate (every lane asking for lane (l + 32) mod 64:
  gfx1201 returns lane l ^ 32, gfx1036 lane l). The model describes RDNA2, so on gfx12xx a
  wave64 program with a ds_bpermute is skipped with that reason; under
  --perturb bpermute_wave64_cross all of them match.

RX 9070 XT, AMD 26.11.2, --programs 1000, seeds 1 and 2: wave32 1000/1000; wave64 537 and 506
match, 0 mismatch, the rest skipped for the bpermute reason. --perturb bpermute_wave64_cross:
wave64 1000/1000. --perturb cmpst_swap: 275 of 1000 wave32 programs mismatch. gfx1036
unchanged: 1000/1000 in both wave sizes and both seeds.

AI-assisted (Claude Code).
</content>
</entry>
<entry>
<title>tools: the RDNA2/3 hardware fuzzers and tests skip on gfx1170+ instead of failing (TEST-873)</title>
<updated>2026-11-22T22:45:21+00:00</updated>
<author>
<name>tedin7</name>
<email>tommasoderosa94@gmail.com</email>
</author>
<published>2026-11-22T22:45:21+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=fef61b247c1d878bed5e2b7dac525c2978e12bc4'/>
<id>urn:sha1:fef61b247c1d878bed5e2b7dac525c2978e12bc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hw_oracle (Linux): run the LDS fuzzers through libdrm</title>
<updated>2026-11-22T22:40:40+00:00</updated>
<author>
<name>errusso</name>
<email>s.russo06@icloud.com</email>
</author>
<published>2026-11-22T22:40:40+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f23b69060cc3dd953a26e23f6cd81627f054e4b5'/>
<id>urn:sha1:f23b69060cc3dd953a26e23f6cd81627f054e4b5</id>
<content type='text'>
The libdrm launcher refused a kernel whose descriptor has a group segment
and capped its output at 4096 words, so lds_fuzz --oracle hw was exit 77
on Linux and no LDS program ran on RDNA2 outside Windows. Both are now
gone; docs/shader_validation.md records the gfx1036 counts.

- drm.py: program COMPUTE_PGM_RSRC2.LDS_SIZE (bits 15..23, 512-byte
  units) from the descriptor's group segment instead of refusing it. The
  assembler leaves that field 0 (measured: 4096 bytes of LDS give group
  4096 and rsrc2 0x84), so the launcher fills it as the HIP runtime does.
  Only scratch memory (private) and COMPUTE_PGM_RSRC3 stay unsupported.
- hw_oracle_drm.c: the output buffer takes 1..16384 words, matching the
  Windows launcher, so a 64x64 image_fuzz case (16384 words) fits.
- asm.py: a wrapped (non-raw) kernel's LDS goes into its descriptor too,
  so the Linux launcher has a group segment to read.
- lds_fuzz.py: the "more than 4096 words" wording no longer applies.

Tests: test_hw_oracle.py gains a descriptor unit test (group segment to
LDS_SIZE, 65536 ceiling) and two OnHardware tests (a kernel that writes,
barriers and reads back LDS; 8192 words from 1024 threads), plus a check
that LDS reaches the descriptor and metadata of a wrapped kernel. Verified
on the integrated Radeon of a Ryzen 7 7700X (gfx1036, RDNA2, Linux
7.3.5-zen1-1-zen, libdrm 2.4.134, AMD clang 23.1.5): lds_fuzz --oracle hw
--programs 500 --seed 1 matches 0 of 1000 (wave32+wave64) mismatches,
image_fuzz --oracle hw --programs 120 --seed 1 0 of 120.

AI-assisted (OpenCode).
</content>
</entry>
</feed>
