Repository navigation
Keep Vulkan isolate batches inside the requested slice - #4580
Open
AGInformatique81 wants to merge 1 commit into
Open
AGInformatique81 wants to merge 1 commit into
AGInformatique81 wants to merge 1 commit into
Conversation
Kam471
reviewed
Nov 23, 2026
Kam471
left a comment
Contributor
There was a problem hiding this comment.
Checked 457e0846 on Windows 11.
tests/test_vk_pipeline_check_isolate.py-> skipped (1 skipped): the suite raisesSkipTest("--isolate is POSIX only")onos.name != "posix", and the changed parent loop is inside#ifndef _WIN32(vk_pipeline_check.cpp:728), so neither the test nor the changed block can run on this host.- I verified the arithmetic instead. With the test's
--isolate-batchvalue (2 * sys.maxsize + 1=SIZE_MAX=2^64-1), a C++size_tstride ofSIZE_MAXis-1:
old loop, lo=2 hi=4:
s=2 count=2
s=1 count=3 <- below lo: checks outside the requested slice
s=0 count=4
... keeps walking down/wrapping
new loop:
s=2 count=2
stops
const batch = std::min(isolate_batch, hi - s); bisect(..., batch); s += batch; cannot wrap and never leaves [lo, hi). git diff --check clean. No blocking issue; the actual --isolate run still needs POSIX CI.
Flyander
approved these changes
Nov 23, 2026
Flyander
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the bounded batch advancement and its slice regression; the cursor now advances by exactly the range sent to the child.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The isolation loop already clamps the number of modules sent to each child. Its cursor still advanced by the requested batch size, so an accepted
--isolate-batchnear SIZE_MAX could wrap with a nonzero--startand run modules outside the requested slice. Advance by the same clamped length sent to the child.On WSL x64 with Mesa Lavapipe 26.1.6 (llvmpipe, LLVM 21.1.8), the new regression requests two modules starting at index 2 with the largest accepted batch. The base reported nine successful pipelines. The patch reports exactly two. All seven isolation tests and all seven index tests passed using a GCC C++20 build and synthetic SPIR-V assembled with the repository's Python assembler.
--isolateis a POSIX path.A trial merge with #4576 was clean. Coordination claim. AI-assisted with Codex.