Repository navigation
docs(ptx-parse): the one published crate with no README - #981
Merged
Merged
Conversation
Every workspace member except `ptx-parse` ships a `README.md` and declares
`readme = "README.md"` -- 26 of 27 with both, and `ptx-parse` with neither.
It is the wrong crate to have missed. `ptx-parse` is the only member that sets
`publish = true`:
# Published because cuda-host depends on it (name verified free on crates.io).
publish = true
description = "Lossless structural views over PTX source text"
so it is the one crate here whose page on crates.io renders from a README, and
that page would render with the one-line description and nothing else. Its
sibling `dialect-ptx` -- from the same NVIDIA#914-NVIDIA#917 stack -- has both, and its
README sends readers here: "`ptx-parse::Document` owns exact external source,
trivia, unknown syntax, and byte-preserving edits." Following that pointer
currently lands on nothing.
The README is written from the crate's own sources, not from an impression of
them:
* the framing and the deliberate no-ISA-type-checking rule come from the
`lib.rs` crate doc,
* the six `StatementKind` variants, the `Document` accessors, `diagnostics`,
`coverage` and `ParseError` from `lib.rs` and `syntax.rs`,
* the `EditScript` surface, including `apply_with_map`/`AppliedEdits` and the
`MapBias` at edit boundaries, from `edit.rs`,
* the `ptx-parse` / `dialect-ptx` split restated in the same terms
`dialect-ptx`'s README already uses, so the two agree rather than drift,
* and the consumer table from the actual `ptx_parse::` call sites in
`cuda-oxide-codegen`, `cuda-host`, `cuda-intrinsics-gen`, `cargo-oxide` and
`dialect-ptx`.
`readme = "README.md"` is added alongside, matching the other 26 manifests, so
the packaged crate carries it too.
Verified: every backticked API name in the new README resolves in
`crates/ptx-parse/src/`; all 27 members now have both the file and the
manifest field; `cargo metadata --locked` still parses; check-crate-inventory,
check-dependency-licenses and check-spdx-headers pass.
Signed-off-by: Vyncint Ng <[email protected]>
crates.io rewrites relative README links against the repository root, so ../../LICENSE escapes the root on the published page.
Collaborator
|
This was referenced Aug 21, 2026
nihalpasham
pushed a commit
that referenced
this pull request
Aug 21, 2026
…#1116) `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`** 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 (#96) ... Neither is a consumer. `dialect-iket` does not depend on `dialect-ptx` and contains no reference to it; #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 #981's review). Signed-off-by: Vyncint Ng <[email protected]>
nihalpasham
added a commit
that referenced
this pull request
Aug 21, 2026
* docs(ptx-schedule): the one published crate with no README `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. This is the same gap #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 (#978, #1045, #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 #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]> * docs(ptx-schedule): align the README with the code it describes 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. --------- Signed-off-by: Vyncint Ng <[email protected]> Co-authored-by: nihalpasham <[email protected]>
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.
Summary
Every workspace member except
ptx-parseships aREADME.mdand declaresreadme = "README.md"— 26 of 27 with both, andptx-parsewith neither.It is the wrong crate to have missed.
ptx-parseis the only member that setspublish = true:So it is the one crate here whose crates.io page renders from a README — and that page would render with the one-line description and nothing else.
Its sibling
dialect-ptx, from the same #914–#917 stack, has both, and its README sends readers here:Following that pointer currently lands on nothing.
What the README says, and where each claim comes from
Written from the crate's own sources, not from an impression of them:
lib.rscrate docStatementKindvariants,Documentaccessors,diagnostics,coverage,ParseErrorlib.rs,syntax.rsEditScriptsurface,apply_with_map/AppliedEdits,MapBiasat edit boundariesedit.rsptx-parse/dialect-ptxsplitdialect-ptx's README already uses, so the two agree rather than driftptx_parse::call sites incuda-oxide-codegen,cuda-host,cuda-intrinsics-gen,cargo-oxide,dialect-ptxreadme = "README.md"is added alongside, matching the other 26 manifests, so the packaged crate carries it too.Happy to cut or reshape any of it — this is the one PR in this batch that adds prose rather than correcting it, and you or @lucifer1004 may have a different idea of what belongs on that page.
Testing
Local, no GPU.
crates/ptx-parse/src/cargo metadata --lockedstill parses;cargo test -p ptx-parsegreen (35 passed)check-crate-inventory,check-dependency-licenses,check-spdx-headerspasscargo oxide run <example>— not applicable