mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #388] [MERGED] vk_fuzz_run: read a wave32 one-word dump from vk_compute_test's larger buffer #441
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#441
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/388
Author: @Sangonapou
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:fix-vk-fuzz-run-short-request📝 Commits (3)
791778dvk_fuzz_run: read a wave32 one-word dump from vk_compute_test's larger buffer2bf664ftest_vk_fuzz_run: a distinct sentinel past the wave and per-lane values in the read_dump test8dcc396test_vk_fuzz_run: read_dump of a wave64 one-word request from a two-group dump📊 Changes
2 files changed (+45 additions, -4 deletions)
View changed files
📝
tests/test_vk_fuzz_run.py(+29 -0)📝
tools/vk_fuzz_run.py(+16 -4)📄 Description
Claimed in the coordination issue as: claim in #14. This carries on my PR 7756 from the original repository, which was not among the 251
old-pr/*branches; same commit, rebased onmainece4ba5b.What and why
tools/vk_fuzz_run.run_programsaccepted aVKC_DUMPonly when it was exactly4 * words * wavebytes.vk_compute_test's output buffer is at least one 64-thread group of words (VKC_OUT_WORDSonly raises it), andVKC_DUMPwrites the whole buffer. So a request under 64 words (wave32 withwords=1: 128 bytes asked, 256 written) failed the check, and every program came back asvk_compute_test exit 0even though it had run and stored the right words. The docstring allowswords1, 2, 4 and 8; 2, 4 and 8 were never affected, and no current caller passes 1.read_dump(path, words, wave)returns the firstwords * wavewords of a dump at least that long, orNonewhen it is missing or short.vk_compute_test: no dump of N bytes or moreinstead ofvk_compute_test exit 0.Tested
NVIDIA GeForce RTX 3080 Ti Laptop (subgroup 32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300); runtime built from this branch with
scripts\build_runtime.ps1(MSVC 19.51);llvm-mc23.1.6 (conda-forge).Two real programs (
v_add_nc_u32of 5 and 3;v_not_b32of0x12345678) throughrun_programsat wave32:wordsmainece4ba5bvk_compute_test exit 0(both)[8],[0xedcba987]maintests/test_vk_fuzz_run.py: 15 OK (newtest_read_dump_takes_the_first_wave_of_a_larger_buffer: a 64-word dump for wave32words=1, an exact-size dump, a short and a missing one).tests/test_fmisc_diff.py(avk_fuzz_runcaller): 34 OK.python -m compileall,scripts/check_no_game_data.pyon both files: clean.On the original repo, PR 7756 had four independent checks (two CPU-side parser sweeps over all eight shapes, a mocked
run_programsprobe and a revert check), all passing.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.