Skip to content

docs(ptx-schedule): the one published crate with no README - #1108

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/ptx-schedule-readme
Aug 21, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/ptx-schedule-readme

Conversation

@vyncint

@vyncint vyncint commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

ptx-schedule arrived with #1065 and is the only publishable crate in the workspace with neither a readme key nor a README.md on disk. Checked across cargo metadata: every other publishable member has both. crates.io renders that file as the package page, so this one would publish with an empty body.

Same gap #981 closed for ptx-parse, and this README follows that one's shape.

Content is taken from the crate, not the commit that added it

One detail carried from #981's review

The License link is absolute rather than ../../LICENSE, because crates.io rewrites relative README links against the repository root and the relative form 404s there. ptx-parse's README was corrected the same way.

Verification

  • cargo metadata now reports readme: README.md for the crate and the file resolves.
  • All seven SiteKind and all eight RunKind names appear; the four InjectionOptions fields appear; no relative ../ links remain.
  • check-crate-inventory.sh, check-spdx-headers.sh and check-book-api-names.sh pass; cargo fmt --all --check clean; RUSTDOCFLAGS="-D warnings" cargo doc -p ptx-schedule clean.

`ptx-schedule` arrived with NVIDIA#1065 and is the only publishable crate in the
workspace with neither a `readme` key nor a README.md on disk. Checked across
`cargo metadata`: every other publishable member has both. crates.io renders
that file as the package page, so this one would publish with an empty body.

This is the same gap NVIDIA#981 closed for `ptx-parse`, and the README follows that
one's shape.

Content is taken from the crate rather than from the commit that added it:

- The purpose and the "owns neither CUDA execution nor an input generator"
  boundary come from `lib.rs`'s module header.
- The seven `SiteKind` variants and the eight campaign `RunKind` verdicts are
  each enumerated in full, since a partial list of a closed enum is the thing
  that rots (NVIDIA#978, NVIDIA#1045, NVIDIA#1056).
- `InjectionOptions`' four fields, `DEFAULT_MAX_SLEEP_NS` (64 µs), the
  `nanosleep.u32` insertion, and the `confirm_runs` re-run before a finding is
  reported are all as implemented.
- `cargo oxide fuzz-schedule` is named as the user-facing entry point, with the
  crate's own binary shown for single-file work; the flags in the example come
  from `main.rs`'s usage string.

One detail carried over from NVIDIA#981's review: the License link is absolute rather
than `../../LICENSE`, because crates.io rewrites relative README links against
the repository root and the relative form 404s there.

Verified: `cargo metadata` now reports `readme: README.md` for the crate and
the file resolves; all seven `SiteKind` and eight `RunKind` names appear;
`check-crate-inventory.sh`, `check-spdx-headers.sh` and
`check-book-api-names.sh` pass; no relative `../` links remain.

Signed-off-by: Vyncint Ng <[email protected]>
Six statements did not match the crate as it stands:

- the execution disclaimer claimed the whole crate owns no CUDA
  execution while campaign.rs two sections down builds, launches,
  watchdogs and assigns verdicts; the section now scopes the claim to
  analyze_ptx/perturb_ptx and points at the campaign layer;
- intensity is a probability dial (0.75 x intensity per site, and it
  scales the drawn sleep lengths), not a fraction of sites touched;
- focus re-weights selection by substring over each site's opcode and
  instruction text (0.95x hits, 0.15x misses); it never restricts the
  sweep to one callable;
- Skipped is assigned only when the example prints a skip marker; a
  zero-injection seed still runs and reports like the baseline;
- findings are reported with their confirmation counts attached, not
  gated on confirmation;
- a seed pins the rewrite, not the schedule the GPU then picks.

Smaller table fixes from the same read of classify_instruction: the
Barrier row now names mbarrier.*, OrderedMemory names the ordering
qualifiers it actually matches (a scope alone never classifies), the
Backedge row describes the conservative same-or-earlier-block test
(no dominance is computed), and the block-index field is called out as
back-edge-only. The injection knobs move into a bulleted list so each
one can state its own semantics.
@nihalpasham

Copy link
Copy Markdown
Collaborator
  • Confirmed the gap: of 29 publishable crates, ptx-schedule was the only one with neither a README nor a readme key, so it would publish with an empty package page. The site table, verdict table and CLI examples check out against the source.
  • One commit layered on: six statements did not match the code. The execution disclaimer covered the whole crate while campaign.rs builds, launches and watchdogs two sections down (now scoped to the analyzer); intensity is a probability dial (0.75x per site, and it also scales sleep length), not a fraction of sites; focus re-weights by substring over opcode and instruction text (0.95x hits, 0.15x misses), it never restricts to one callable; Skipped requires a printed skip marker (a zero-injection seed still runs and reports like the baseline); findings carry confirmation counts rather than being gated on them; a seed pins the rewrite, not the schedule. Same commit: mbarrier.* in the Barrier row, the ordering qualifiers OrderedMemory actually matches, the conservative same-or-earlier-block back-edge test, and the block-index field called out as back-edge-only.
  • The redux entry in the WarpCollective row becomes true when fix(ptx-schedule): redux.sync is not a schedule site, so campaigns walk past it #1111 lands, so that one merges first.

@nihalpasham nihalpasham added documentation Improvements or additions to documentation fuzzer Fuzzing infrastructure (rustlantis, difftest) labels Aug 21, 2026
@nihalpasham
nihalpasham merged commit b7fe543 into NVIDIA:main Aug 21, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation fuzzer Fuzzing infrastructure (rustlantis, difftest)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants