Repository navigation
Description
What problem does this solve?
cuda-oxide has comprehensive tcgen05 support on main for bf16/f16/tf32, including TMEM allocation, MMA, fence, commit/wait, and 2CTA variants. However, FP8 variants and the new FP6/FP4 narrow floating-point types introduced on Blackwell are missing. This tracks adding those.
Split from #335 for per-architecture tracking. See also: SM80 (#274), SM89 (#337), SM90 (#338).
Status (2026-07-27)
Partially landed via the #406 intrinsics autogen, from two directions:
- Warp-specialized tcgen05 narrow-type MMA:
crates/cuda-device/src/generated/tcgen05.rsnow has per-input-kind entry pointstcgen05_mma_ws_{e4m3,e5m2,e3m2,e2m3,e2m1}(kind::f8f6f4, collectorb0::discard, TMEM A operand). - Generic descriptor-driven path: the standard entry points (
tcgen05_mma_shared/tcgen05_mma_tensor, plus_sp_and 2CTA forms) are generic over aKINDconst and take a caller-built instruction descriptor (idesc), so FP8/FP6/FP4 operands are already expressible through them today. - Register-level FP6/FP4 (not tcgen05, but relevant to the narrow-type groundwork):
mma_m16n8k32variants withe2m1/e2m3/e3m2inputs (kind::f8f6f4) landed ingenerated/register_mma.rs, plussp::ordered_metadatasparse forms.
What this issue still tracks: typed, checked tcgen05 MMA variants for FP8/FP6/FP4 on the standard (non-ws) path (like the existing tcgen05_mma_f16 convenience), mixed-input FP8 forms, first-class FP6/FP4 type and conversion support, and end-to-end examples/tests. Boxes stay unchecked until those exist. New items go through the #406 workflow: append to intrinsics/overlay/*.toml + intrinsics/abi-v1.toml and regenerate.
Scope
Each item follows the established 4-layer pattern (cuda-device > dialect-nvvm > mir-importer > mir-lower) plus lowering tests. Requires SM89 FP8 type support (#337 Phase 1) as a prerequisite for the FP8 variants.
Phase 1: tcgen05 FP8 variants (sm_100+)
The existing tcgen05 implementation covers bf16/f16/tf32. FP8 variants are needed for Blackwell FP8 workloads.
-
tcgen05.mma.*.f32.e4m3— FP8 E4M3 inputs (ws form landed via Generate CUDA intrinsic APIs and lowering from pinned LLVM 22 data #406; standard form open) -
tcgen05.mma.*.f32.e5m2— FP8 E5M2 inputs (ws form landed via Generate CUDA intrinsic APIs and lowering from pinned LLVM 22 data #406; standard form open) -
tcgen05.mma.*.f32.e4m3.e5m2— mixed FP8
Phase 2: Narrow floating-point types (sm_100+, PTX ISA 8.7+)
Blackwell extends the type system with FP6 and FP4 narrow floating-point types.
- FP6
e3m2type support - FP6
e2m3type support - FP4
e2m1type support -
tcgen05.mma.*.f32.e3m2— FP6 E3M2 inputs (ws form landed via Generate CUDA intrinsic APIs and lowering from pinned LLVM 22 data #406; standard form open) -
tcgen05.mma.*.f32.e2m3— FP6 E2M3 inputs (ws form landed via Generate CUDA intrinsic APIs and lowering from pinned LLVM 22 data #406; standard form open) -
tcgen05.mma.*.f32.e2m1— FP4 E2M1 inputs (ws form landed via Generate CUDA intrinsic APIs and lowering from pinned LLVM 22 data #406; standard form open)
Note: These require the
kind::f8f6f4suffix on the PTX instruction and PTX ISA 8.7+.
What already exists on main
| Feature | Status |
|---|---|
| tcgen05 (bf16/f16/tf32, TMEM, fence, commit/wait) | ✅ |
| tcgen05 2CTA variants | ✅ |
| tcgen05 FP8 | 🟡 ws entry points + descriptor-driven generic path (#406) |
| tcgen05 FP6/FP4 | 🟡 ws entry points + register-level m16n8k32 (#406) |
Activity
honeyspoon commentedon Jul 18, 2026
Update: Upstream PR #406 merged, autogenerating all CUDA intrinsic APIs from pinned LLVM 22 data (781 admitted contracts). Many intrinsics tracked here are now covered by the generator. To add any remaining ones, append to
intrinsics/overlay/*.toml+intrinsics/abi-v1.tomland regenerate — see #406 for the full workflow.