Repository navigation
Conversation
shyro29
left a comment
There was a problem hiding this comment.
Tested 651759141 on Linux x86_64, CPython 3.14 (no game files, synthetic): pass.
python -I tests/test_bench_wave64.pyat the head: OK; the same test file against main's script: FAILED (failures=3) — red/green confirmed.- The one-line fix is the right scope: a user running the benchmark on a multi-GPU box with
LEONIDA_VK_DEVICEexported would have had every benchmark subprocess pinned to that device, so the amd/nv configurations would measure the wrong GPU (or nothing). Popping it from the child environment keeps the operator's shell filter for other work. python -I scripts/check_no_game_data.pyon the two changed files: clean. AI-assisted (Claude Code).
|
AMD Windows check of
So on a dual-AMD machine the PR always takes the driver's first AMD device and the user can no longer choose the iGPU (with |
|
Tested
No game files. AI-assisted (Antigravity / Gemini 4 Neon). |
|
macOS arm64 verification (Apple M3 Pro, three Vulkan ICDs on one host) Tested PR head Host: macOS 27.2.1, Apple M3 Pro (arm64), CPython 3.15.2. Vulkan ICDs present: MoltenVK 1.4.0, Mesa KosmicKrisp 26.3.0, lavapipe (Mesa 26.3.0).
The conflict this prevents is worse than "the wrong GPU is picked" — I reproduced it With two selectable devices on this host: So the inherited filter does not merely override Scope check, and the one place to keep an eye on
The test's assertion that Unrelated to this diff, for anyone running it on a Mac: all three No functional issues found. No game files. AI-assisted. |
|
Tested 6517591 on Windows 11 (CPU only, no GPU needed): pass Windows 11 Pro, Python 3.14.7, no GPU or game files involved; pytest/numpy/Pillow pinned from
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Tested
Not run: |
|
Independent check of Unit tests — Live run — inherited PR head: Both AMD configurations run, the emulated output hash equals the native one, and the parent's Same command with So the new environment handling is what makes the AMD comparison survive an inherited filter, and the change is a no-op when no filter is set.
Synthetic |
|
Tested GPUs: NVIDIA GeForce RTX 3070 (driver 32.0.16.1088, Vulkan 1.4.341, subgroups 32..32) and AMD Radeon(TM) Graphics, the Ryzen 7 7800X3D's iGPU (driver 32.0.21042.62, Vulkan 1.4.315, subgroups 32..64). MSVC 19.44, Vulkan SDK 1.4.363,
The timings are not worth reading: another job was using the RTX 3070 during the runs. Synthetic shaders only, no game data. AI-assisted (ZCode). |
|
The update at All 13 benchmark tests passed, including a simulated discrete/integrated AMD pair. A Windows Vulkan test ran all three configurations with a prebuilt synthetic |
|
Reviewed 6517591, code read (CPU), AI-assisted: the new test fails on main and passes here, so it tests the claim. Ran |
|
Correction to my review above: it was written against the earlier head 6517591. The current head d5633bb ("Preserve matching Vulkan device filters in the benchmark") already addresses the dual-AMD concern: |
What changed
The wave64 benchmark runs separate AMD and NVIDIA driver configurations. An inherited
LEONIDA_VK_DEVICEremains useful when one driver exposes more than one GPU. Keep a matching filter. If the first process says no physical device matches it, print a notice and retry that configuration with the driver's default device. A configuration keeps that choice for subsequent processes. The benchmark fails if no configuration completes using the filter, and the caller's environment is preserved.Claim: #8683 (comment)
Verification
cs_w32_permutemodule. Each valid filter gave matching hashes and the expected opposite-vendor fallback. A nonexistent filter exited 1. The dual-AMD selection case was tested with a simulated GPU pair.AI-assisted. Synthetic inputs only.