Test logical wave64 partitions on native Linux Vulkan #117

Open
github-bot wants to merge 1 commit from github-bot/gh-117 into main AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-11-25 01:58 UTC · original
Yoshi-233:test/vulkan-wave64-partition → main · +175 −37 · 4 files · 1 commits · open

Refs #4.

This adds a headless Linux Vulkan CTest for the existing partition shader and CPU reference. It exercises partition masks, sums and guarded lane reads across the lane 31/32 boundary. The test uses shared memory and barriers in a 64-invocation workgroup. Native subgroup shuffles, AMD wave64 hardware and D3D12 remain open parts of #4.

Reproduce

From the repository root, with the Vulkan SDK tools and Python 3 on the path:

cmake -S fixtures/native-linux-vulkan -B build-vk -DCMAKE_BUILD_TYPE=Release
cmake --build build-vk --target linux_vulkan_wave64_partition
ctest --test-dir build-vk -R '^native_linux_vulkan_wave64_partition$' --no-tests=error -V

The build compiles the shader for Vulkan 1.1 and runs spirv-val. CTest then dispatches 2,112 workgroups with seed 0x57415645 and compares all 12 output words per logical lane against the CPU reference.

Local results

I ran the full native Linux Vulkan suite headless, selecting one ICD at a time with VK_DRIVER_FILES.

Vulkan implementation Reported subgroup size Output words checked Mismatches Suite
Entry-level NVIDIA GPU 32 1,622,016 0 4/4 passed
Mesa llvmpipe (software) 8 1,622,016 0 4/4 passed

As a negative control, I flipped one bit in a copy of the expected output. The runner exited with status 1 and identified the changed word:

partition mismatch: group=8 lane=32 field=5 expected=4294967294 actual=4294967295
**@⁠Yoshi-233** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/pull/117) `Yoshi-233:test/vulkan-wave64-partition` → `main` · +175 −37 · 4 files · 1 commits · open Refs #4. This adds a headless Linux Vulkan CTest for the existing [partition shader](https://github.com/ProhorovIlja/NativeX-Runtime/blob/b3087ce0ab191227dc9e7af37cab97a0b097bb98/fixtures/native_wave64_partition.comp) and [CPU reference](https://github.com/ProhorovIlja/NativeX-Runtime/blob/b3087ce0ab191227dc9e7af37cab97a0b097bb98/tools/wave64_partition_vectors.py). It exercises partition masks, sums and guarded lane reads across the lane 31/32 boundary. The test uses shared memory and barriers in a 64-invocation workgroup. Native subgroup shuffles, AMD wave64 hardware and D3D12 remain open parts of #4. ## Reproduce From the repository root, with the Vulkan SDK tools and Python 3 on the path: ```sh cmake -S fixtures/native-linux-vulkan -B build-vk -DCMAKE_BUILD_TYPE=Release cmake --build build-vk --target linux_vulkan_wave64_partition ctest --test-dir build-vk -R '^native_linux_vulkan_wave64_partition$' --no-tests=error -V ``` The build compiles the shader for Vulkan 1.1 and runs `spirv-val`. CTest then dispatches 2,112 workgroups with seed `0x57415645` and compares all 12 output words per logical lane against the CPU reference. ## Local results I ran the full native Linux Vulkan suite headless, selecting one ICD at a time with `VK_DRIVER_FILES`. | Vulkan implementation | Reported subgroup size | Output words checked | Mismatches | Suite | | --- | ---: | ---: | ---: | --- | | Entry-level NVIDIA GPU | 32 | 1,622,016 | 0 | 4/4 passed | | Mesa llvmpipe (software) | 8 | 1,622,016 | 0 | 4/4 passed | As a negative control, I flipped one bit in a copy of the expected output. The runner exited with status 1 and identified the changed word: ```text partition mismatch: group=8 lane=32 field=5 expected=4294967294 actual=4294967295 ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:08:06 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/117/head:github-bot/gh-117'
git switch 'github-bot/gh-117'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-117'
git switch 'github-bot/gh-117'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-117'
git switch 'github-bot/gh-117'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-117'
git switch 'main'
git merge --squash 'github-bot/gh-117'
git switch 'main'
git merge --ff-only 'github-bot/gh-117'
git switch 'main'
git merge 'github-bot/gh-117'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.