Skip to content

docs(book): refresh the dialect-nvvm counts the catalog stamp now invalidates - #969

Merged
nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:docs/nvvm-counts-after-batch
Aug 18, 2026
Merged

nihalpasham merged 1 commit into
NVIDIA:mainfrom
vyncint:docs/nvvm-counts-after-batch

Conversation

@vyncint

@vyncint vyncint commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

The obligation #964's merge comment attached to #946 landing. #946 has landed (d485edbb), and it was not the only batch member to move these numbers.

The page carries the self-invalidating stamp your layered commit added:

If the header stamp no longer starts with df42ef97, the counts on this page predate the catalog you are reading.

Every ops/generated/ header now prints 20440c06..., so it does.

What moved, and which PR moved it

Recomputed at d485edbb, with each delta attributed per module via git ls-tree + git show rather than from a PR diff:

Module Before After From
generated/integer_minmax.rs 0 8 #967 — new module, DPX min/max
generated/packed_alu.rs 22 30 #946 — f32x2 arithmetic
ops/wgmma.rs 6 7 #935 — counted-K pipeline op

Which moves five figures and adds a row:

Figure Before After
catalog stamp df42ef97 20440c06
total 543 / 41 modules 560 / 42
hand-written 18 ops 19 (wgmma 6→7)
generated 34 mods / 525 ops / 986 entries 35 / 541 / 1002
Packed (SIMD-in-register) 43 51
Integer min/max (DPX) — new row, 8

integer_minmax gets its own row rather than joining Scalar math beside extended_minmax: six of its eight ops are 16x2 packed forms (max_s16x2, min_relu_s16x2, …) and two are scalar s32, so it reads as a feature area, not a scalar-math addition.

Checked and unchanged in the same pass: dialect-mir is still 62 ops / 12 modules / 9 types, and the pliron pin is still 8447aa42, so the LLVM dialect's 69 stands.

A correction to my own #964

That PR asserted #946 added no ops, on the strength of gh pr diff 946 | grep -c pliron_op returning 0. As you noted, gh pr diff returns empty on a diff that large — so the grep was counting nothing rather than finding nothing. An unfalsifiable check that reads as a clean result, which is the same shape as the rg || true bug check-reserved-prefixes.sh documents. Every count here is derived from git objects in the tree instead.

One editorial change on the same page

The chapter opened "works across three pliron dialects … two defined locally". Two more local pliron dialects exist and the book never mentions either: dialect-iket (7 ops, 2 types) and dialect-ptx (#917). The claim is now scoped to the lowering path — which is what this chapter covers — with a pointer to both crates' READMEs, rather than shoehorning an event-tracing dialect and a terminal PTX dialect into a "levels of abstraction" table where they do not belong.

The same count appears in pliron.md and architecture-overview.md; those are a companion PR, and this one touches neither file.

Testing

Local, no GPU.

  • Every figure on the page recomputed by script against the tree (stamp, totals, all 7 hand-written rows, all 11 generated group rows summing to 541)
  • just book (sphinx-build -W --keep-going) succeeds
  • check-book-api-names.sh passes
  • cargo oxide run <example> — not applicable, documentation only

…alidates

The obligation NVIDIA#964's merge comment attached to NVIDIA#946 landing. NVIDIA#946 has landed
(d485edb), and it was not the only batch member to move these numbers.

The page carries a self-invalidating stamp: "If the header stamp no longer
starts with `df42ef97`, the counts on this page predate the catalog you are
reading." Every `ops/generated/` header now prints `20440c06...`, so it does.

Recomputed from the tree at d485edb, with each delta attributed by
`git ls-tree` + `git show` per module rather than from a PR diff:

  generated/integer_minmax.rs   0 -> 8    new module (NVIDIA#967, DPX min/max)
  generated/packed_alu.rs      22 -> 30   f32x2 arithmetic (NVIDIA#946)
  ops/wgmma.rs                  6 -> 7    counted-K pipeline op (NVIDIA#935)

which moves five figures and adds a row:

  stamp                    df42ef97 -> 20440c06
  total                    543 across 41 modules -> 560 across 42
  hand-written             18 ops -> 19 (`wgmma` 6 -> 7)
  generated                34 modules / 525 ops / 986 catalog entries
                        -> 35 modules / 541 ops / 1002 catalog entries
  Packed (SIMD-in-reg)     43 -> 51
  Integer min/max (DPX)    new row, 8 -- `integer_minmax`

`integer_minmax` gets its own row rather than joining Scalar math beside
`extended_minmax`: six of its eight ops are `16x2` packed forms
(`max_s16x2`, `min_relu_s16x2`, ...) and two are scalar `s32`, so it is a
feature area rather than a scalar-math addition.

Checked and unchanged in the same pass: dialect-mir is still 62 ops across 12
modules with 9 types, and the `pliron` pin is still 8447aa42, so the LLVM
dialect's 69 stands.

**A correction to my own NVIDIA#964 while I am here.** That PR asserted NVIDIA#946 added
no ops, on the strength of `gh pr diff 946 | grep -c pliron_op` returning 0.
As the merge comment noted, `gh pr diff` returns empty on a diff that large,
so the grep was counting nothing rather than finding nothing -- an
unfalsifiable check that reads as a clean result. Every count in this commit
is derived from git objects in the tree instead.

Separately, the chapter's opening said cuda-oxide "works across three pliron
dialects ... two defined locally". Two more local pliron dialects exist and
the book never mentions either: `dialect-iket` (7 ops, 2 types) and
`dialect-ptx` (NVIDIA#917). The claim is now scoped to the lowering path, which is
what this chapter actually covers, with a pointer to the two crates' READMEs.
The same count appears in `pliron.md` and `architecture-overview.md`; those
are a separate change, and this one does not touch either file.

Verified: every figure on the page recomputed by script against the tree;
`just book` (`sphinx-build -W --keep-going`) succeeds; check-book-api-names
passes.

Signed-off-by: Vyncint Ng <[email protected]>
@nihalpasham nihalpasham added documentation Improvements or additions to documentation intrinsics Device intrinsics and libdevice math mappings labels Aug 18, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator
  • Recomputed every count on the page at current main (d485edb) - all exact, including the catalog-stamp figures.
  • pliron.md and architecture-overview.md still say two local dialects; a companion PR close behind this one closes the cross-page window.

@nihalpasham
nihalpasham merged commit 10687af into NVIDIA:main Aug 18, 2026
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 intrinsics Device intrinsics and libdevice math mappings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants