Repository navigation
vulkan_tf: split gpu.zig and kernels_ergo.zig under 600 lines (moves only) - #6197
Merged
Merged
Conversation
Owner
Author
|
READY to land on this head. engines/vulkan_tf only, moves only: gpu.zig (2,293 lines) and kernels_ergo.zig (852) split into files under 600 lines (largest 540); function and test bodies byte-identical except initResources, laid out from its original body with the same statements and cleanup guards in the same order. No behaviour, kernel or arithmetic change. The Vulkan engine's tests pass 267 of 268 (1 skipped) on an M5 Ultra.
|
Move complete methods without body edits. Extract the oversized init resource tail into one helper on the same Context; retain parent cleanup guards and resource creation order.
ashhart
force-pushed
the
lead/vulkan-split-gpu
branch
from
December 3, 2026 14:41
3294876 to
0cd3d23
Compare
ashhart
added a commit
that referenced
this pull request
Dec 3, 2026
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.
engines/vulkan_tfonly, moves only:src/gpu.zig(2,293 lines) andsrc/kernels_ergo.zig(852) are split into files under 600 lines (gpu_init.zig,gpu_memory.zig,gpu_commands.zigand others; the largest is 540). Public names are re-exported where callers use them.Function and test bodies are byte-identical to the originals, except that
initResourcesis laid out from its original body with the same statements and cleanup guards in the same order. No behaviour, kernel or arithmetic change.The Vulkan engine's tests pass 267 of 268 (1 skipped) on an M5 Ultra. This unblocks #6118, whose touched files were over the 600-line cap.