Repository navigation
Conversation
Signed-off-by: Raul Estrada <[email protected]>
Collaborator
|
Closing this PR because expected-kernel validation is not consistently derived or applied.
The underlying benefit is clear, but this needs cross-path design work rather than a small maintainer correction. A replacement should follow the existing abstractions and evidence requirements in the Discord announcement. |
vyncint
added a commit
to vyncint/cuda-oxide
that referenced
this pull request
Aug 24, 2026
… from CI Follow-up to the same review, from re-reading the twenty PRs closed on 2026-08-24. NVIDIA#1167 was closed partly because "the cargo-oxide compatibility finalization path remains unguarded" and NVIDIA#1169 because its instruction table "omits" families -- neither for an observed failure, both for a path the change did not enumerate. This guard had one of those. `workflow_coverage` read literal `bash scripts/check-*.sh` commands out of a `run:` script. A step that runs `just check-guards` executes every guard in that recipe, and the walk saw only the command `just`. So a workflow written that way would have every one of its guards reported as "executed by `just check` but by no pull-request workflow" -- a false failure, blocking CI, with the verdict exactly backwards. Nothing in `.github/workflows/` invokes `just` today, which is why the corpus did not show it. That is the point: the guard's job is to be right about the wiring, not about this week's wiring. A `just <recipe>` command is now resolved through the Justfile recipe graph the script already parses -- the authoritative list in that case, rather than a second one derived here -- and the guards that recipe reaches are credited to that step. The `-` prefix still does not enforce inside a recipe reached that way, and the recipe named on the command line is its own entry point, so reachability from `check` does not apply to it. Three fixtures, each failing before the change: a step running `just check-guards` credits a guard nested one dependency deep; the same step credits nothing when no Justfile is supplied; and a `-` prefixed line inside the recipe `just` runs is still not counted. `recipes_reachable_from` and `recipe_guards` are now shared by both halves rather than the walk existing twice. Unmutated: all fourteen guards pass, the nine end-to-end defeats still fail, the subset reader still agrees with PyYAML on all 11 workflows, 0.02s. Signed-off-by: Vyncint Ng <[email protected]>
7 of 9 tasks
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.
Closes #1166
Part of #1071.
Summary
This adds a final-link safety invariant for expected CUDA kernels.
A successful
nvJitLinkcall is no longer considered sufficient when thecaller knows which kernel entry points must survive. The finalizer now roots
those kernels during linking and verifies that they are present in the emitted
PTX or cubin.
What changed
public entry points.
nvJitLinkas repeated-kernels-used=<name>options.artifact digests.
symbols.
kernel metadata is available.
The enforced invariant is:
Validation
The following pass locally:
The CUDA Toolkit live regressions also pass:
And the broader validation passes:
rustc-codegen-cudawas also validated independently with formatting, unittests, and Clippy.
Scope
This is intentionally limited to the final-link safety portion of #1071.
It does not add
libcudadevrtdiscovery/linking and does not implement thepublic CUDA Graph API. Those remain separate follow-up changes.