Repository navigation
build_runtime.ps1: the cl.exe fallback builds the GPU test harnesses the tools need - #1238
Conversation
…the tools need Without VS's "C++ CMake tools" component, build_runtime.ps1 compiles with cl.exe directly, and that list never built vk_compute_test, vk_store_test or vk_harness (the programs check.py and run_gpu_tests.py require and valu_fuzz.py/lds_fuzz.py run), nor vk_image_fuzz (image_fuzz.py's harness). TEST-71 on that path stopped at "vk_compute_test not found". Build them the way the fallback builds vk_texture_test. tests/test_build_runtime_fallback.py checks that the fallback builds every harness those tools name and that each source it compiles exists. Found by @derekhearst. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested f4ee349 on Windows 11, VS 18 / MSVC 14.51. I forced the Overlaps #1236, which also extends the same fallback and conflicts with this in |
|
Tested f4ee349 on NVIDIA GeForce RTX 3090 (Ampere, subgroup 32..32), driver 610.88 (Vulkan 1.4.341), Windows 11 Pro 26300: pass. This adds a functional run to @kapitche's build check: the programs the fallback builds are used for the GPU suite and the fuzzers, and compared with a normal CMake build.
No game files. |
|
Thanks @kapitche, @Rainmaker33 and @abilliontokens. Rainmaker33's functional run from the forced fallback build (GPU suite 91/118 with 27 wave64 skips, and every fuzzer matching the CMake build) covers what I couldn't do here without llvm-mc. Thanks too for closing #1236 in favour of this one. AI-assisted (Claude Code). |
pratikphophaliya
left a comment
There was a problem hiding this comment.
Tested f4ee349 on NVIDIA RTX 3050 6GB Laptop GPU, driver 610.62, Windows 11 (10.0.26200): pass
Visual Studio 2026 Community without the "C++ CMake tools" component, so build_runtime.ps1 took the cl.exe fallback (VULKAN_SDK=1.4.363.0).
- tests/test_build_runtime_fallback.py: 2/2 OK
- Fallback build succeeded; vk_compute_test, vk_store_test, vk_harness and vk_image_fuzz.exe are all built (on main the fallback builds none of them, so the fuzzers stop with "missing vk_compute_test")
- With that build: lds_fuzz --emulate 40/40 match, valu_fuzz --family f16 --emulate 40/40 match (seed 2, --wave both)
- run_gpu_tests.py --build runtime\build: 89/116 passed, 27 skipped (all wave64 without emulation), 0 failed
(Tested with AI assistance.)
Claimed in the coordination issue as: @derekhearst's finding (finding, claim). No ID assigned yet.
What and why
When Visual Studio has no "C++ CMake tools" component,
scripts/build_runtime.ps1(whatmake_game.pyanddocs/testing.mduse) compiles with cl.exe directly. That fallback builtgta6rtand nine test programs, but not:vk_compute_test,vk_store_test,vk_harness:check.py'sTEST_PROGRAMSandrun_gpu_tests.py'sREQUIRED_TEST_PROGRAMS, and the programvalu_fuzz.py/lds_fuzz.py/crosslane_fuzz.pyrun;vk_image_fuzz:image_fuzz.py'sHARNESS.So TEST-71 and the GPU suite stopped at "vk_compute_test not found" / "Test programs not found" on that path.
scripts/build_runtime.ps1: four moreif defined VULKAN_SDK cl ...lines, the same flags the fallback uses forvk_texture_test. Each harness is oneruntime/test/<name>.cpp, as inruntime/CMakeLists.txt's Vulkan tool loop. The CMake path is unchanged.tests/test_build_runtime_fallback.py(stdlib, CPU only): reads the fallback branch of the script. It checks that the/Fe:list contains every harness those tools name (imported fromrun_gpu_tests,checkandimage_fuzz, so it follows them), and that everyruntime\test\*.cppthe fallback compiles exists.What's left: nothing for this finding. The fallback still leaves out the optional parts its comment lists (SDL3 GameInput) and the ctest-only test programs, which is unchanged.
Tested
NVIDIA GeForce RTX 5060 Ti, driver 621.14, Windows 10 19045, VS 2022 BuildTools, Vulkan SDK 1.4.363.0, Python 3.14.7.
build_runtime.ps1(deleted afterwards) whose only change makes$cmakepoint at a path that doesn't exist. It printedWARNING: VS C++ CMake tools not found: building with cl.exe directly...andbuilt ...\runtime\build\gta6rt.exe, exit 0, 0 compiler warnings. It produced 14 programs, now includingvk_harness,vk_compute_test,vk_store_testandvk_image_fuzz. On main the same fallback produces 10.vk_compute_test(device: NVIDIA GeForce RTX 5060 Ti (subgroup 32..32)),vk_store_testandvk_image_fuzzeach create the Vulkan device, then stop at the shader. There's nollvm-mchere to assemble real ones.run_gpu_tests.py --build runtime/buildon that fallback build: it passes the harness check. Withvk_compute_test.exemoved away, it stops withTest programs not found in ...: vk_compute_test.exe, which is what main's fallback gives. After the check it stops at the missingllvm-mcthe same way the CMake build of main does.build_runtime.ps1, it fails, listingvk_compute_test,vk_harness,vk_store_testandvk_image_fuzzas missing.vk_store_testline dropped, it namesvk_store_test.vk_harness.cppmisspelled, the source check fails.Not tested: a machine that really lacks the CMake component (I forced the branch instead), full GPU suite and fuzzer runs (no
llvm-mchere), and-Debugon the fallback.Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)AI-assisted (Claude Code).
🤖 Generated with Claude Code