Skip to content

docs(book): the feature appendix has no row for tensor cores, and calls FP8 Planned - #1054

Merged
nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/book-supported-features-fp8-redux
Aug 20, 2026
Merged

nihalpasham merged 2 commits into
NVIDIA:mainfrom
vyncint:docs/book-supported-features-fp8-redux

Conversation

@vyncint

@vyncint vyncint commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The page opens by promising "every compiler capability, runtime API, and hardware feature along with its current support status." Three gaps against that, in increasing size.

1. FP8 is listed as not implemented

Under Not Yet Implemented:

| FP8 / MX Data Types | **Planned** | Roadmap item for Blackwell.
                                      No architectural limitation. |

The catalog holds 158 entries for these formats — 12 conversions and 146 matrix ops — surfacing as pub unsafe fn in cuda_device::convert, cuda_device::wmma and cuda_device::tcgen05, and the mma_mxf8f6f4 example compiles them. By the page's own legend that is Partial, not Planned.

The gap is real and worth naming rather than deleting the row: there is no arithmetic on these formats. Grouping the 158 by kind gives 12 cvt and 146 mma, and nothing matching add/mul/sub/fma/min/max/abs. So a value is carried as a packed bit pattern and converted before use, unlike f16/bf16, which have their own arithmetic modules. That is what the new row says.

2. The Warp section has no redux.sync row

cuda_device::warp exports sixteen of them; the section lists shuffle, vote and lane/warp ID. The new row carries both halves and their different floors: integers on sm_80+, and f32 min/max with optional .abs/.NaN on sm_100a/sm_100f/sm_103a/sm_103f (#1032). f64 has no form, which the row also says.

3. There is no matrix or tensor-core section at all

grep -i for "tensor core", "wgmma", "tcgen05", "wmma", "mma" or "TMEM" across the whole appendix returns nothing. No row for warp-level mma.sync, sparse MMA, Hopper warpgroup MMA, Blackwell tcgen05/TMEM, or the accumulator fragment algebra — in the feature matrix of a compiler whose headline example is a Blackwell GEMM. This adds a section for it, and moves the FP8 row there, since the matrix path is where those formats are used.

Calibration and sourcing

Statuses follow the existing TMA section, the other Hopper+ hardware feature, which marks compile-only-in-CI capabilities Full with the architecture stated in the description.

Every row is sourced from the tree: module summaries from each module's own //! header (wgmma states Hopper sm_90a, tcgen05 Blackwell sm_100+), sparse MMA from the mma.sp.sync.aligned.* strings in generated/sparse_mma.rs, and the redux names from pub fn declarations in warp.rs. Book builds clean under sphinx-build -W; check-book-api-names.sh passes.

vyncint and others added 2 commits August 20, 2026 06:27
…ls FP8 Planned

The page opens by promising "every compiler capability, runtime API, and
hardware feature along with its current support status." Three gaps against
that promise, in increasing order of size.

**FP8 is listed as not implemented.** Under "Not Yet Implemented":

    | FP8 / MX Data Types | **Planned** | Roadmap item for Blackwell.
                                          No architectural limitation. |

The catalog holds 158 entries for these formats -- 12 conversions and 146
matrix ops -- surfacing as `pub unsafe fn` in `cuda_device::convert`,
`cuda_device::wmma` and `cuda_device::tcgen05`, and the `mma_mxf8f6f4` example
compiles them. By the page's own legend that is **Partial**, not Planned.

The gap is real and worth naming rather than dropping the row: there is *no
arithmetic* on these formats. Grouping the 158 by kind gives 12 `cvt` and 146
`mma`, and nothing matching add/mul/sub/fma/min/max/abs. So a value is carried
as a packed bit pattern and converted before use, unlike `f16`/`bf16`, which
have their own scalar and packed arithmetic modules. That is what the new row
says.

**The Warp section has no `redux.sync` row**, although `cuda_device::warp`
exports sixteen of them. The section lists shuffle, vote and lane/warp ID. The
new row carries both halves and their different floors: integers on sm_80+,
and `f32` min/max with optional `.abs`/`.NaN` on
`sm_100a`/`sm_100f`/`sm_103a`/`sm_103f` (NVIDIA#1032). `f64` has no form, which the
row also says.

**There is no matrix or tensor-core section at all.** `grep -i` for "tensor
core", "wgmma", "tcgen05", "wmma", "mma" or "TMEM" across the whole appendix
returns nothing -- no row for warp-level `mma.sync`, sparse MMA, Hopper
warpgroup MMA, Blackwell tcgen05/TMEM, or the accumulator fragment algebra, in
the feature matrix of a compiler whose headline example is a Blackwell GEMM.
Add a section for it, and move the FP8 row there, since the matrix path is
where those formats are actually used.

Statuses are calibrated against the existing TMA section, which is the other
Hopper+ hardware feature and marks compile-only-in-CI capabilities **Full**
with the architecture stated in the description. These rows follow that.

Every row is sourced from the tree, not from memory: module summaries come
from each module's own `//!` header (`wgmma` states Hopper `sm_90a`, `tcgen05`
Blackwell sm_100+), sparse MMA is confirmed by the `mma.sp.sync.aligned.*`
strings in `generated/sparse_mma.rs`, and the redux names are checked against
`pub fn` declarations in `warp.rs`. Book builds clean under `sphinx-build -W`
and `check-book-api-names.sh` passes.

Signed-off-by: Vyncint Ng <[email protected]>
@nihalpasham nihalpasham added documentation Improvements or additions to documentation intrinsics Device intrinsics and libdevice math mappings cuda-feature A CUDA hardware/toolkit feature (TMA, tcgen05, WGMMA) labels Aug 20, 2026
@nihalpasham

Copy link
Copy Markdown
Collaborator
  • Verified the new rows against the tree and found one real error: the wgmma row claimed "bf16/f16/tf32 accumulate" under Full, but tf32 is a compatibility stub the importer rejects (pending Add value-threaded TF32 m64n64k8 full-drain WGMMA lowering #1076), bf16/f16 are inputs with an f32 accumulator, and the lowering covers specific proven loop patterns (f16 straight-line only, per the wgmma.rs module header). A reader following the row would write a kernel the compiler rejects, the failure mode this PR was filed to prevent.
  • One commit layered on: wgmma is now Partial with the gap named in the row, matching the page's own legend and this PR's FP8 row; plus sentence-level touch-ups on the FP8 and sparse MMA rows. Book build and api-names guard pass.
  • Everything else checked out, including the deliberately narrow f32 redux arch list and stmatrix under tcgen05.

@nihalpasham
nihalpasham merged commit 78a1c8e into NVIDIA:main Aug 20, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda-feature A CUDA hardware/toolkit feature (TMA, tcgen05, WGMMA) 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