Skip to content

Do not hide failed compute dumps behind subgroup skips - #9859

Open
WebIdentity1 wants to merge 1 commit into
ProjectLeonida:mainfrom
WebIdentity1:codex/gpu-subgroup-failed-exit
Open

WebIdentity1 wants to merge 1 commit into
ProjectLeonida:mainfrom
WebIdentity1:codex/gpu-subgroup-failed-exit

Conversation

@WebIdentity1

Copy link
Copy Markdown
Contributor

Claim: #9677 (comment)

Problem and fix

Both GPU test runners can report SKIP when vk_compute_test prints a requested subgroup size as unavailable and later fails. A validation error after the dispatch can leave a complete word dump and exit 1; the subgroup warning currently hides that failure. An earlier failure can also leave the warning without a complete dump.

An unpinned dispatch can legitimately exit 1 when its words differ at the wrong wave width, so exit status alone cannot decide. The shared skip rule now requires status 0 or 1, a complete eight-word dump, and no validation-error count. check.py applies it to dump mode, and run_gpu_tests.py applies it to its pinned dump case. Other modes and exit-77 unsupported behavior remain as before.

Validation

  • New CPU-only fake-child cases drive both runners with a successful unpinned dump, a wrong-width exit-1 dump, an exit-1 dump followed by 1 validation errors, an exit-1 incomplete dump, exit 2, and exit 77. The validation/incomplete/exit-2 cases report failure; the legitimate unpinned and unsupported cases remain skips. The new tests fail on unchanged main 2d53a8055 and pass on this head, rebased to 7067ff2f2.
  • Focused test_shader_checks.py classes: 17 passed. Full test_run_gpu_tests.py: 63 passed.
  • Full test_shader_checks.py: 84 baseline tests and 85 head tests, with the same 15 errors, all in the unrelated Wave64Checks fake harness (cwd argument). No new or resolved error IDs.
  • Full semantic baseline/head comparison: 459 files / 6,046 tests; the same 49 failure IDs in test_exec_computed and test_image_atomics_guard, zero new or resolved IDs. The later main update to 7067ff2f2 touched docs and tests/test_design_contract_rows.py, not these sources or semantic tests.
  • Python compileall, make_game.py --help, changed-file no-game-data scan, and git diff --check passed. Automated merge-tree checks with open fixture PRs GPU fixture for the packed integer dot products (cs_w32_dot_int) #9781 and GPU fixture for v_mqsad_u32_u8 through the translated path (TEST-644) #4669 are clean.

Tested on macOS 27.2 arm64 / Apple M5 Ultra. This regression uses synthetic process output; no GPU, driver, or game files were used for this fix.

AI-assisted: yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant