gpu-test-results: Apple M4 (MoltenVK 1.4.2, macOS 27.3) (GPU-M4) #564

Merged
etsukow merged 1 commit from upstream-pr/564 into main 2026-11-28 09:13:15 +00:00
etsukow commented 2026-11-24 08:19:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by etsukow on 2026-11-24T08:19:09Z.


Claimed in the coordination issue as: GPU-M4 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125932809)

What and why

Adds the Apple M4 GPU-test record in the gpu-test-results/ format, and its row in docs/gpu_test_results.md. No other Apple silicon desktop is recorded on this repository's main (#552's M5 Pro is still open), so this adds the second Apple data point and cross-checks it against it: native/emulated counts are word-identical (183/61, 214/30) on 1c93c86 and on the M5 machine's d42773d07, and the four failures match. Two differences recorded: ps_ssharp fails deterministically here (3 single-filter runs, same words), and the #543 ps_imgatomic flake never appears on this machine.

The tfe pair (#31) was checked on a clean worktree at #291 (de87b1a): all four cs_imgload* fixtures pass there (4/4), so #291 fixes them on MoltenVK 1.4.2 too. cs_fma_fused was also run under LEONIDA_FMA=khr: the device has shaderFmaFloat32/Float16 and word 7 still reads 0x00000000, which localizes the split to MoltenVK's lowering, not to the emitted OpFmaKHR — recorded in the note.

Tested

  • run_gpu_tests.py native (two full runs, identical results) and with LEONIDA_W64_EMULATE=1: 183/248 (61 skipped) and 214/248 (30 skipped) on commit 1c93c869.
  • build.py + check.py two-step: 280/280 translated, 280 spirv-val; 174 of 219 pass, 39 skipped, 6 failed.
  • ctest: 72/72 passed, 2 skipped (portable macOS subset).
  • #291 checked out clean at de87b1a: the four cs_imgload* fixtures pass.

GPUs tested: Apple M4 (8-core), MoltenVK 1.4.2 (Homebrew bottle), Vulkan loader 1.4.357, macOS 27.3 arm64

AI-assisted: yes (omp)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (not applicable; no translator changes)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5468576548 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/564). Originally posted by [etsukow](https://github.com/etsukow) on 2026-11-24T08:19:09Z. --- Claimed in the coordination issue as: GPU-M4 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125932809) ### What and why Adds the Apple M4 GPU-test record in the `gpu-test-results/` format, and its row in `docs/gpu_test_results.md`. No other Apple silicon desktop is recorded on this repository's main (#552's M5 Pro is still open), so this adds the second Apple data point and cross-checks it against it: native/emulated counts are word-identical (183/61, 214/30) on `1c93c86` and on the M5 machine's `d42773d07`, and the four failures match. Two differences recorded: `ps_ssharp` fails deterministically here (3 single-filter runs, same words), and the #543 `ps_imgatomic` flake never appears on this machine. The tfe pair (#31) was checked on a clean worktree at #291 (`de87b1a`): all four `cs_imgload*` fixtures pass there (4/4), so #291 fixes them on MoltenVK 1.4.2 too. `cs_fma_fused` was also run under `LEONIDA_FMA=khr`: the device has `shaderFmaFloat32/Float16` and word 7 still reads 0x00000000, which localizes the split to MoltenVK's lowering, not to the emitted `OpFmaKHR` — recorded in the note. ### Tested - `run_gpu_tests.py` native (two full runs, identical results) and with `LEONIDA_W64_EMULATE=1`: 183/248 (61 skipped) and 214/248 (30 skipped) on commit `1c93c869`. - `build.py` + `check.py` two-step: 280/280 translated, 280 spirv-val; 174 of 219 pass, 39 skipped, 6 failed. - `ctest`: 72/72 passed, 2 skipped (portable macOS subset). - #291 checked out clean at `de87b1a`: the four `cs_imgload*` fixtures pass. GPUs tested: Apple M4 (8-core), MoltenVK 1.4.2 (Homebrew bottle), Vulkan loader 1.4.357, macOS 27.3 arm64 AI-assisted: yes (omp) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (not applicable; no translator changes)
PierreEbele commented 2026-11-25 00:40:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T00:40:41Z.


Reviewed fbc9aaf7, consistency of the record only (no Apple GPU here). Two statements in gpu-test-results/AppleM4.txt contradict the data:

  • Notes, line 51: "The four failures match the M5 Pro record (#552) word for word". Only three do (cs_fma_fused, cs_imgload_tfe, cs_imgload_d16_tfe). The fourth failure here is ps_ssharp, while the fourth in AppleM5Pro.txt is the ps_imgatomic flake (#543), which passes on this machine.
  • Skipped, line 44: "those 30 plus ps_vcmpx_forms". ps_vcmpx_forms is already one of the 30: 61 − 31 wave64 = 16 + 4 + 6 + 1 + 2 + 1 = 30, and that 2 is ps_w64x_readlane + ps_vcmpx_forms. As written, the line implies 31 emulated skips.

All counts add up (174+39+6, 183+61+4, 214+30+4). docs/gpu_test_results.md also conflicts with current main (#552's M5 Pro row is at the same place), so it needs a rebase.

AI-assisted review.

Recommendation: Fix first

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7148761507 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/564#issuecomment-7148761507). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T00:40:41Z. --- Reviewed fbc9aaf7, consistency of the record only (no Apple GPU here). Two statements in `gpu-test-results/AppleM4.txt` contradict the data: - Notes, line 51: "The four failures match the M5 Pro record (#552) word for word". Only three do (`cs_fma_fused`, `cs_imgload_tfe`, `cs_imgload_d16_tfe`). The fourth failure here is `ps_ssharp`, while the fourth in `AppleM5Pro.txt` is the `ps_imgatomic` flake (#543), which passes on this machine. - Skipped, line 44: "those 30 plus ps_vcmpx_forms". `ps_vcmpx_forms` is already one of the 30: 61 − 31 wave64 = 16 + 4 + 6 + 1 + 2 + 1 = 30, and that 2 is `ps_w64x_readlane` + `ps_vcmpx_forms`. As written, the line implies 31 emulated skips. All counts add up (174+39+6, 183+61+4, 214+30+4). `docs/gpu_test_results.md` also conflicts with current `main` (#552's M5 Pro row is at the same place), so it needs a rebase. AI-assisted review. **Recommendation:** Fix first
MoonEyes commented 2026-11-27 23:20:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:20:02Z.


Hi @etsukow, thanks for this pull request. It currently conflicts with main (conflicting file(s): docs/gpu_test_results.md), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230058944 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/564#issuecomment-7230058944). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:20:02Z. --- Hi @etsukow, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `docs/gpu_test_results.md`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
DadaCap commented 2026-11-28 09:13:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T09:13:50Z.


Thanks for the record! It is now on main through #2568, which combined 17 GPU test record PRs to avoid 17 conflicting edits of the shared table in docs/gpu_test_results.md. #2568 was merged with a merge commit, so your own commits are kept in the history under your name. Closing this one as done.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7237102392 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/564#issuecomment-7237102392). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T09:13:50Z. --- Thanks for the record! It is now on main through #2568, which combined 17 GPU test record PRs to avoid 17 conflicting edits of the shared table in `docs/gpu_test_results.md`. #2568 was merged with a merge commit, so your own commits are kept in the history under your name. Closing this one as done. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!564
No description provided.