Repository navigation
dsv41 metal mv_mma: guard f32 pipeline with errdefer in loadSource - #5015
Conversation
|
Thanks for splitting this out. I tested The contract executable built, and Igor Lessio - AIFLOW LABS |
|
Thanks, @cwschroeder. The guard now protects the acquired F32 pipeline before BF16 creation can fail, while leaving successful loading and dispatch unchanged. The reported two-format checks and four caught controls are useful. The separate early-test compile issue is unchanged by this fix. This narrow cleanup change looks ready.
|
|
I verified the failure path on M5 Max with With the cleanup removed, the F32 object stayed alive after the loader returned and its autorelease pool drained. Restoring this PR's one-line guard made the object deallocate and the focused fixture pass 1/1. zig build test-dsv41-mv-mma-setup -Dfixed-cpu -j2 --summary allThat target is the local fault-injection fixture. The PR's normal F32 and BF16 device contract results are in the earlier receipt. This isolates setup ownership and leaves the separate early-picks test issue outside this PR. Igor Lessio - AIFLOW LABS |
1f6dfdc to
0c96dbf
Compare
|
Thank you @cwschroeder. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
Splits out the pipeline leak fix noted in #4784 directly onto
main, independent of the held Inkling Metal stack.In
zig/src/families/deepseek_v41/metal/mv_mma.zig,Pipelines.loadSourcepreviously initialized bothf32andbf16pipelines inside the return literal, leaking thef32pipeline ifbf16initialization failed. This bindsf32_pipelocally witherrdefer f32_pipe.deinit()before creatingbf16_pipe.Verified locally with
zig fmt --check build.zig zig,zig build compile-inkling2-native-host -Dfixed-cpu -j2, andpython3 tools/pr_check.py --base origin/main(0 errors).