Repository navigation
docs(ptx): both PTX crates' consumer inventories predate ptx-schedule - #1116
Merged
nihalpasham merged 1 commit intoAug 21, 2026
Merged
Conversation
`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]>
Collaborator
|
nihalpasham
approved these changes
Aug 21, 2026
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.
ptx-schedulelanded 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 longThe Consumers table lists
cuda-oxide-codegen,cuda-host,cuda-intrinsics-gen,cargo-oxide,dialect-ptx. Six crates declareptx-parseas a dependency; that is five of them.ptx-scheduletakesDocument,EditScript,InstructionandParseError— as central a use as any row already there.Every other row checks out, including the file-level detail:
export.rsandptx.rsincuda-oxide-codegen, andembedded.rsincuda-host, all three exist and all three referenceptx_parse.dialect-ptx— a section that names two non-consumersThe section headed "First consumers" reads:
Neither is a consumer:
dialect-iketdoes not depend ondialect-ptx. Its[dependencies]arepliron,pliron-derive,thiserror,linkme,combine,dyn-clone, and the crate contains no reference todialect_ptxat all.Meanwhile the one crate that does depend on
dialect-ptx—ptx-schedule, and it depends on nothing else from it butcfg::ControlFlow— goes unmentioned.dialect-ptxhas 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-scheduleand 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
check-book-api-names.sh: OK across 159 READMEsTwo files, both README-only. Checked against every open PR's file list — no overlap.