[GH-ISSUE #1813] Apple M3 (MoltenVK 1.4.2): wave32 words=1 dump path verified, 15/15 unit tests #48

Open
opened 2026-11-26 20:16:02 +01:00 by 4ld0 · 1 comment
Owner

Originally created by @EvgHaze on GitHub (Nov 25, 2026).
Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/1813

What this records

The wave=32 path of tools/vk_fuzz_run.py — the shape that PR #388 fixed (a words=1, wave=32 request against a dump that is at least one 64-word group) — verified on Apple hardware, plus the merged unit tests on macOS. Reported in context in #388; this issue is the findable home.

Environment

Machine Apple M3, 10-core (MacBook Air 13", Mac15,13), macOS 27.0 (26A5406e), arm64
Driver MoltenVK 1.4.2 (Homebrew), ICD loaded directly; subgroup 4..32, default 32
Tree 0d80bc5, cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo, 198 targets, 33 vk_* tools
Tools Homebrew llvm-mc 23.1.4 (AMDGPU), SPIRV-Tools 1.4.363.0, AppleClang 21.0.0, CMake 4.4.4, Python 3.13.7

Results

python3 -I tests/test_vk_fuzz_run.py → 15 tests, OK (same count as the merge comment).

run_programs(words=1, wave=32) with a program that stores the lane id from v20:

per_lane=True   -> 32 lanes, [[0], [1], [2], ... [30], [31]]
per_lane=False  -> 'lanes [1, 2, 3] differ from lane 0 on identical inputs'

All 32 lanes come back in order, and the uniform check still rejects a program whose lanes differ. Before #388 this request returned no lanes at all.

What this is not

Not a hardware comparison: vint_diff.py --oracle hw,vk exits with hardware oracle unavailable: the launcher targets the Windows AMD driver (amdhip64_7.dll), so the hw,vk differential mode cannot run on a Mac. This is the wrapper plus vk_compute_test on a 32-wide host.

AI-assisted. No game data: one hand-written program, and the numbers above are its output.

Originally created by @EvgHaze on GitHub (Nov 25, 2026). Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/1813 ### What this records The wave=32 path of `tools/vk_fuzz_run.py` — the shape that PR #388 fixed (a `words=1, wave=32` request against a dump that is at least one 64-word group) — verified on Apple hardware, plus the merged unit tests on macOS. Reported in context in [#388](https://github.com/ubiquitarianism/leonida/pull/388#issuecomment-7162308852); this issue is the findable home. ### Environment | | | |---|---| | Machine | Apple M3, 10-core (MacBook Air 13", Mac15,13), macOS 27.0 (26A5406e), arm64 | | Driver | MoltenVK 1.4.2 (Homebrew), ICD loaded directly; subgroup 4..32, default 32 | | Tree | `0d80bc5`, `cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo`, 198 targets, 33 `vk_*` tools | | Tools | Homebrew llvm-mc 23.1.4 (AMDGPU), SPIRV-Tools 1.4.363.0, AppleClang 21.0.0, CMake 4.4.4, Python 3.13.7 | ### Results `python3 -I tests/test_vk_fuzz_run.py` → **15 tests, OK** (same count as the merge comment). `run_programs(words=1, wave=32)` with a program that stores the lane id from `v20`: ```text per_lane=True -> 32 lanes, [[0], [1], [2], ... [30], [31]] per_lane=False -> 'lanes [1, 2, 3] differ from lane 0 on identical inputs' ``` All 32 lanes come back in order, and the uniform check still rejects a program whose lanes differ. Before #388 this request returned no lanes at all. ### What this is not Not a hardware comparison: `vint_diff.py --oracle hw,vk` exits with `hardware oracle unavailable: the launcher targets the Windows AMD driver (amdhip64_7.dll)`, so the `hw,vk` differential mode cannot run on a Mac. This is the wrapper plus `vk_compute_test` on a 32-wide host. AI-assisted. No game data: one hand-written program, and the numbers above are its output.
Author
Owner

@GeorgiyDemo commented on GitHub (Nov 25, 2026):

Apple M5 Pro run of the same wave32 shape, for a second SoC/OS pair.

Machine:  Apple M5 Pro, 16-core GPU (MacBook Pro), macOS 26.7.3 (25G342), arm64
Driver:   MoltenVK 1.4.2 (Homebrew), ICD loaded directly; subgroup 4..32, default 32
Tree:     ubiquitarianism/leonida `71a769d7d`, cmake build of `runtime` (default flags), 40 `vk_*` binaries
Tools:    Homebrew llvm-mc 23.1.4 (AMDGPU), SPIRV-Tools v2026.4, AppleClang 21.0.0, CMake 4.5.1, Python 3.15.2

Unit test file: python3 -I tests/test_vk_fuzz_run.py → 15 tests, OK.

run_programs(words=1, wave=32), with ["v_mov_b32 v8, v20"] (the program stores the lane id from v20; the dump is 64 words and the request is 32):

per_lane=True  -> 32 lanes, [[0], [1], [2], ... [30], [31]]
per_lane=False -> 'lanes [1, 2, 3] differ from lane 0 on identical inputs'

Same words and order as the M3/macOS 27 run above, so the wrapper plus vk_compute_test behaves identically on macOS 26.7.3 / M5 — this is not specific to the newer OS.

What this is not: no hardware comparison. vint_diff.py --oracle hw,vk still reports the Windows AMD launcher (amdhip64_7.dll) as unavailable on a Mac, same as the M3 note; this is the wrapper plus vk_compute_test on a 32-wide host.

AI-assisted. No game data: one hand-written program, and the numbers above are its output.

<!-- gh-comment-id:7165406988 --> @GeorgiyDemo commented on GitHub (Nov 25, 2026): Apple M5 Pro run of the same wave32 shape, for a second SoC/OS pair. ```text Machine: Apple M5 Pro, 16-core GPU (MacBook Pro), macOS 26.7.3 (25G342), arm64 Driver: MoltenVK 1.4.2 (Homebrew), ICD loaded directly; subgroup 4..32, default 32 Tree: ubiquitarianism/leonida `71a769d7d`, cmake build of `runtime` (default flags), 40 `vk_*` binaries Tools: Homebrew llvm-mc 23.1.4 (AMDGPU), SPIRV-Tools v2026.4, AppleClang 21.0.0, CMake 4.5.1, Python 3.15.2 ``` **Unit test file:** `python3 -I tests/test_vk_fuzz_run.py` → **15 tests, OK**. **`run_programs(words=1, wave=32)`**, with `["v_mov_b32 v8, v20"]` (the program stores the lane id from v20; the dump is 64 words and the request is 32): ```text per_lane=True -> 32 lanes, [[0], [1], [2], ... [30], [31]] per_lane=False -> 'lanes [1, 2, 3] differ from lane 0 on identical inputs' ``` Same words and order as the M3/macOS 27 run above, so the wrapper plus `vk_compute_test` behaves identically on macOS 26.7.3 / M5 — this is not specific to the newer OS. **What this is not:** no hardware comparison. `vint_diff.py --oracle hw,vk` still reports the Windows AMD launcher (`amdhip64_7.dll`) as unavailable on a Mac, same as the M3 note; this is the wrapper plus `vk_compute_test` on a 32-wide host. AI-assisted. No game data: one hand-written program, and the numbers above are its output.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#48
No description provided.