Skip to content

docs(ptx): both PTX crates' consumer inventories predate ptx-schedule - #1116

Merged
nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:docs/ptx-crate-consumer-inventories
Aug 21, 2026
Merged

nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:docs/ptx-crate-consumer-inventories

Conversation

@vyncint

@vyncint vyncint commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

ptx-schedule landed in #1065 and depends on both PTX crates. Neither one's README says so, and one of them is now wrong rather than merely short.

ptx-parse — a table five of six long

The Consumers table lists cuda-oxide-codegen, cuda-host, cuda-intrinsics-gen, cargo-oxide, dialect-ptx. Six crates declare ptx-parse as a dependency; that is five of them. ptx-schedule takes Document, EditScript, Instruction and ParseError — as central a use as any row already there.

Every other row checks out, including the file-level detail: export.rs and ptx.rs in cuda-oxide-codegen, and embedded.rs in cuda-host, all three exist and all three reference ptx_parse.

dialect-ptx — a section that names two non-consumers

The section headed "First consumers" reads:

The first in-tree consumers of the native CFG are IKET PTX instrumentation (dialect-iket), which needs verified block boundaries and successor edges to place probes, and the Tile-to-SIMT interop epic (#96) ...

Neither is a consumer:

Meanwhile the one crate that does depend on dialect-ptx — ptx-schedule, and it depends on nothing else from it but cfg::ControlFlow — goes unmentioned. dialect-ptx has exactly one in-tree dependent, and the section pointed the reader at two crates that are not it.

So the section states a plan in the present tense. Renamed to "Consumers", naming ptx-schedule and what it uses the CFG for (back-edge discovery, which is what makes a spin loop perturbable whatever its label, predicate or branch spelling), and keeping the other two where they belong — as planned work that does not depend on the crate yet.

Verification

Two files, both README-only. Checked against every open PR's file list — no overlap.

`ptx-schedule` landed in NVIDIA#1065 and depends on both PTX crates. Neither one's
README says so, and one of them is now wrong rather than merely short.

**`ptx-parse`** lists its consumers in a table: `cuda-oxide-codegen`,
`cuda-host`, `cuda-intrinsics-gen`, `cargo-oxide`, `dialect-ptx`. Six crates
declare `ptx-parse` as a dependency; that is five of them. `ptx-schedule`
takes `Document`, `EditScript`, `Instruction` and `ParseError`, which is as
central a use as any row already there. Every other row checks out, including
the file-level detail -- `export.rs` and `ptx.rs` in `cuda-oxide-codegen`, and
`embedded.rs` in `cuda-host`, all three exist and all three reference
`ptx_parse`.

**`dialect-ptx`** has a section headed "First consumers" that reads:

> The first in-tree consumers of the native CFG are IKET PTX instrumentation
> (`dialect-iket`), which needs verified block boundaries and successor edges
> to place probes, and the Tile-to-SIMT interop epic (NVIDIA#96) ...

Neither is a consumer. `dialect-iket` does not depend on `dialect-ptx` and
contains no reference to it; NVIDIA#96 is still an open tracking issue. Meanwhile the
one crate that does depend on `dialect-ptx` -- `ptx-schedule`, and it depends
on nothing else from it but `cfg::ControlFlow` -- goes unmentioned. So the
section states a plan in the present tense, and the reader looking for who
actually exercises the native CFG is pointed at two crates that do not.

Rename it to "Consumers", name `ptx-schedule` and what it uses the CFG for
(back-edge discovery, which is what makes a spin loop perturbable whatever its
label, predicate or branch spelling), and keep the other two where they belong,
as planned work that does not depend on the crate yet.

Verified: `check-book-api-names.sh` reports OK across 159 READMEs; no relative
links were added, so crates.io rendering is unaffected (the correction from
NVIDIA#981's review).

Signed-off-by: Vyncint Ng <[email protected]>
@nihalpasham

Copy link
Copy Markdown
Collaborator
  • Every claim checks out against the Cargo.tomls and source: ptx-schedule is dialect-ptx's only dependent (dialect-iket has no dependency; Tracking: Tile-to-SIMT Interop (cuda-oxide as SIMT participant) #96 is open, not a consumer) and the sixth ptx-parse consumer; the ControlFlow::analyze usage and back-edge rationale match analyze_ptx.
  • The apparent second ptx_parse user in cuda-host is a grep false positive on link_ltoir_to_ptx_parsed* names, so the existing cuda-host row stays accurate as written.
  • Consumer inventories have no guard the way API names do; if they drift again, a check script in the status-guard family is follow-up material.

@nihalpasham nihalpasham added documentation Improvements or additions to documentation ptx-dialect Native PTX dialect series: structured PTX IR, CFG analysis, direct-to-PTX path fuzzer Fuzzing infrastructure (rustlantis, difftest) labels Aug 21, 2026
@nihalpasham
nihalpasham merged commit 8c44618 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) ptx-dialect Native PTX dialect series: structured PTX IR, CFG analysis, direct-to-PTX path

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants