Repository navigation
Conversation
ashhart
force-pushed
the
lead/dsv41-pdl-check
branch
from
November 12, 2026 14:28
6db880a to
247031b
Compare
1 task done
ashhart
added a commit
that referenced
this pull request
Nov 14, 2026
ashhart
force-pushed
the
lead/dsv41-pdl-check
branch
from
November 14, 2026 20:12
247031b to
3777050
Compare
6 of 8 tasks
ashhart
added a commit
that referenced
this pull request
Nov 18, 2026
ashhart
force-pushed
the
lead/dsv41-pdl-check
branch
from
November 18, 2026 02:53
3777050 to
c82fcf2
Compare
ashhart
added a commit
that referenced
this pull request
Nov 21, 2026
ashhart
force-pushed
the
lead/dsv41-pdl-check
branch
from
November 21, 2026 19:12
c82fcf2 to
2e33126
Compare
ashhart
force-pushed
the
lead/dsv41-pdl-check
branch
from
November 23, 2026 19:02
2e33126 to
7d02826
Compare
This branch has not been deployed
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.
What this changes
DeepSeek-V4.1 compiles its Triton kernels with
PDL=falseas a compile-time constant (zig/src/families/deepseek_v41/block_attn.zig,block_prefill_attn.zig), but the launch attribute comes from the captured spec's ownpdlfield (zig/src/cuda/aot.zig,triton_capture.zig). Nothing checked that the two agree. APDL=falsevariant launched with programmatic serialization could start before the kernel ahead of it finishes.Both captured loaders now check every spec before any cubin is opened or module loaded (
zig/src/cuda/aot_pdl.zig):pdldisagrees with itsPDLconstexpr is refused by kernel name (error.PdlMismatch);PDLconstexpr may only launch without PDL;PDLfails closed.Matching specs load and launch exactly as before. No kernel, variant choice, launch geometry or arithmetic changes, and the check runs at load, not per token. The DeepSeek replay loader now keeps a spec's constants instead of dropping them.
Tests
zig/src/cuda/aot_pdl_test.zig: both disagreement directions, a bad spec after good ones (refused before any module loads), missing and non-integerPDL, both agreeing values, and legacy manifests with nopdl.zig/src/families/deepseek_v41/load_test.zig: the same through the DeepSeek loader with the fake driver, checking launch configs and balanced module ownership.FileNotFound, and parse and replay accept the bad spec).Host: 25/25 steps, 959/961 tests (2 skipped). Linux cross-compile of the tool and server: 14/14. Lean 386 to 386.
Not yet checked on a GPU: loading DeepSeek-V4.1, Flash Next and Nemotron with their shipped captures, to confirm none of them carries a disagreeing spec. This will be done on GB10 before landing.
Refs #2715.