tests: keep failed GPU dispatches visible (GPU-PIN-EXIT-STATUS) #1000

Manually merged
github merged 1 commit from gh-pr/1000/head into gh-pr/1000/base 2026-11-26 09:32:48 +00:00
Owner

@⁠Okachamie on GitHub · 2026-11-24 16:43 UTC · original
Okachamie:gpu-pin-exit-status → main · +26 −7 · 4 files · 1 commits · merged 2026-11-24 23:22 UTC

Claimed in the coordination issue as: GPU-PIN-EXIT-STATUS

What and why

vk_compute_test can print that a requested subgroup size is unavailable before it dispatches. A later dispatch error or crash could then be reported as a skip by both GPU test runners. Require exit zero before treating that warning as a skip, and include the exit status in failed compute dump reports. Explicit unsupported-feature exits still skip.

Tested

  • Both regression cases reproduced the false skip on main. The synthetic tests cover an ordinary failure, Linux SIGSEGV status, and Windows access-violation status.
  • 158 game-free unit tests passed across tests/test_run_gpu_tests.py, tests/test_shader_checks.py, and tests/test_run_gpu_wavemask.py.
  • cs_barrier_loop passed via both runners, with native settings and with LEONIDA_W64_EMULATE=1. Both partial-wave64 fixtures skipped on the native 32-lane device and passed with emulation. All fixture translations passed spirv-val.

GPUs tested: NVIDIA GeForce RTX 5090 Laptop GPU, NVIDIA 620.73.04, CachyOS 7.3.5-2-cachyos.

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • New translator rule in docs/design.md (N/A; test runner changes).
**@⁠Okachamie** on GitHub · 2026-11-24 16:43 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1000) `Okachamie:gpu-pin-exit-status` → `main` · +26 −7 · 4 files · 1 commits · merged 2026-11-24 23:22 UTC Claimed in the coordination issue as: [GPU-PIN-EXIT-STATUS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why `vk_compute_test` can print that a requested subgroup size is unavailable before it dispatches. A later dispatch error or crash could then be reported as a skip by both GPU test runners. Require exit zero before treating that warning as a skip, and include the exit status in failed compute dump reports. Explicit unsupported-feature exits still skip. ### Tested - Both regression cases reproduced the false skip on main. The synthetic tests cover an ordinary failure, Linux SIGSEGV status, and Windows access-violation status. - 158 game-free unit tests passed across `tests/test_run_gpu_tests.py`, `tests/test_shader_checks.py`, and `tests/test_run_gpu_wavemask.py`. - `cs_barrier_loop` passed via both runners, with native settings and with `LEONIDA_W64_EMULATE=1`. Both partial-wave64 fixtures skipped on the native 32-lane device and passed with emulation. All fixture translations passed `spirv-val`. GPUs tested: NVIDIA GeForce RTX 5090 Laptop GPU, NVIDIA 620.73.04, CachyOS 7.3.5-2-cachyos. AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [ ] New translator rule in `docs/design.md` (N/A; test runner changes).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:32:46 +00:00
github manually merged commit e55b3be88a into gh-pr/1000/base 2026-11-26 09:32:48 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 16:51 UTC · original · approved these changes

Reviewed exact head e55b3be88a. Fedora 45 unit suites passed 158/158 across the three named test modules; no-game-data and diff checks passed. Built vk_compute_test and translated fixtures from this head. On the host RTX 3090 (NVIDIA 620.73.04), native cs_barrier_loop passed at subgroup 32 with 0 mismatches and the expected eight words; the two LEONIDA_W64_EMULATE=1 partial-wave64 fixtures also passed with 0 mismatches. The disposable container exposed llvmpipe and skipped the native 32-lane pin as unsupported; this was an environment limitation, not a failure. Synthetic shaders only; no game data. Hosted label check was queued.

**@⁠KernelSmoker** on GitHub · 2026-11-24 16:51 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1000#pullrequestreview-6043605666) · **approved these changes** Reviewed exact head e55b3be88a1db454d7a53eb2beb81985d8995e45. Fedora 45 unit suites passed 158/158 across the three named test modules; no-game-data and diff checks passed. Built `vk_compute_test` and translated fixtures from this head. On the host RTX 3090 (NVIDIA 620.73.04), native `cs_barrier_loop` passed at subgroup 32 with 0 mismatches and the expected eight words; the two `LEONIDA_W64_EMULATE=1` partial-wave64 fixtures also passed with 0 mismatches. The disposable container exposed llvmpipe and skipped the native 32-lane pin as unsupported; this was an environment limitation, not a failure. Synthetic shaders only; no game data. Hosted label check was queued.
Author
Owner

@⁠Okachamie on GitHub · 2026-11-24 18:22 UTC · original

I compared #1000 at e55b3be88 and #125 at 44481fdb9 with fresh Vulkan helper builds on CachyOS. The fixtures were game-free and passed spirv-val.

  • cs_barrier_loop in plain dump mode exited 0 with a complete output on llvmpipe (Mesa 26.3.1, subgroup 8). Both runners on both heads reported SKIP because wave32 was unavailable. Both runners passed on the RTX 5090 Laptop (NVIDIA 620.73.04), with and without LEONIDA_W64_EMULATE=1.
  • Pointing VKC_DUMP at a directory forced a real write failure after the subgroup warning. For cs_barrier_loop, both runners on both heads reported FAIL. For cs_lds, cs_exec64, cs_workgroup_yz, and cs_bvh32, check.py on #1000 reported FAIL with exit 1. On #125 it reported SKIP in all four cases.
  • The plain dump runs did not reproduce an exit 1 caused solely by wrong-width output. The reproduced difference is in the four other compute modes.

AI-assisted verification.

**@⁠Okachamie** on GitHub · 2026-11-24 18:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1000#issuecomment-7140547348) I compared #1000 at `e55b3be88` and #125 at `44481fdb9` with fresh Vulkan helper builds on CachyOS. The fixtures were game-free and passed `spirv-val`. - `cs_barrier_loop` in plain `dump` mode exited 0 with a complete output on llvmpipe (Mesa 26.3.1, subgroup 8). Both runners on both heads reported `SKIP` because wave32 was unavailable. Both runners passed on the RTX 5090 Laptop (NVIDIA 620.73.04), with and without `LEONIDA_W64_EMULATE=1`. - Pointing `VKC_DUMP` at a directory forced a real write failure after the subgroup warning. For `cs_barrier_loop`, both runners on both heads reported `FAIL`. For `cs_lds`, `cs_exec64`, `cs_workgroup_yz`, and `cs_bvh32`, `check.py` on #1000 reported `FAIL` with exit 1. On #125 it reported `SKIP` in all four cases. - The plain `dump` runs did not reproduce an exit 1 caused solely by wrong-width output. The reproduced difference is in the four other compute modes. AI-assisted verification.
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 23:22 UTC · original

Merging.

Why merged: GPU-PIN-EXIT-STATUS: in check.py and run_gpu_tests, a helper that exits non-zero is always a failure, never a subgroup-pin SKIP, so a crashing helper can't hide as a skip. KernelSmoker approved it after an RTX 3090 GPU run, and the author compared it against #125.

Why it's good: run_gpu_tests, shader_checks and run_gpu_tests_paths: 177 passed.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 0f98d193c. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠QemmHD** on GitHub · 2026-11-24 23:22 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1000#issuecomment-7147321844) Merging. **Why merged:** GPU-PIN-EXIT-STATUS: in check.py and run_gpu_tests, a helper that exits non-zero is always a failure, never a subgroup-pin SKIP, so a crashing helper can't hide as a skip. KernelSmoker approved it after an RTX 3090 GPU run, and the author compared it against #125. **Why it's good:** run_gpu_tests, shader_checks and run_gpu_tests_paths: 177 passed. Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 0f98d193c. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.