Skip to content

fix(ptx-schedule): classify async issue and wait sites - #1169

Closed
uurl wants to merge 1 commit into
NVIDIA:mainfrom
uurl:fix/ptx-schedule-async-issue-wait-sites
Closed

uurl wants to merge 1 commit into
NVIDIA:mainfrom
uurl:fix/ptx-schedule-async-issue-wait-sites

Conversation

@uurl

@uurl uurl commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1113

Summary

Classify async proxy pipeline instructions in ptx-schedule so they become visible
to schedule analysis and perturbation campaigns.

Changes

The campaign reporting path requires no additional changes because site counts are
derived dynamically from the SiteKind debug names.

Validation

cargo fmt --all -- --check
cargo test -p ptx-schedule --all-targets
cargo clippy -p ptx-schedule --all-targets -- -D warnings
RUSTDOCFLAGS="-D warnings" cargo doc -p ptx-schedule --no-deps --document-private-items
git diff --check

Results:

  • 19 unit tests passed.
  • 4 CLI integration tests passed.
  • Clippy passed with warnings denied.
  • Rustdoc passed with warnings denied.
  • git diff --check passed.

Manual CLI validation also confirms that both --list-sites and
--decisions-json serialize the new kinds as:

AsyncIssue
AsyncWait

@uurl
uurl force-pushed the fix/ptx-schedule-async-issue-wait-sites branch from 0a79a46 to 7b6a5e4 Compare August 23, 2026 20:45
@nihalpasham nihalpasham added declined PR intentionally not merged (closed without merging) codegen Device code-generation pipeline (Rust MIR to IR to PTX) labels Aug 24, 2026
@nihalpasham

nihalpasham commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closing this PR because the async-instruction table is incomplete and can silently leave valid async PTX unclassified.

  • It omits cp.reduce.async.bulk, wgmma.mma_async, and relevant tcgen05.mma, .cp, .shift, and .st families.
  • The tests repeat the same partial table, so they cannot detect these omissions.
  • Classification needs one authoritative semantic source and coverage for every supported async family.

A replacement needs to address the full instruction set rather than selected shapes, with negative and unaffected controls as required by the Discord acceptance criteria.

@nihalpasham nihalpasham added fuzzer Fuzzing infrastructure (rustlantis, difftest) and removed codegen Device code-generation pipeline (Rust MIR to IR to PTX) labels Aug 24, 2026
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]>
@uurl
uurl deleted the fix/ptx-schedule-async-issue-wait-sites branch August 31, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

declined PR intentionally not merged (closed without merging) fuzzer Fuzzing infrastructure (rustlantis, difftest)

Projects

None yet

2 participants