Skip to content

Tracking: SM100+ (Blackwell) device intrinsics — tcgen05 FP8/FP6/FP4 variants #339

Open

Description

@honeyspoon

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.rs now has per-input-kind entry points tcgen05_mma_ws_{e4m3,e5m2,e3m2,e2m3,e2m1} (kind::f8f6f4, collector b0::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 a KIND const 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_m16n8k32 variants with e2m1/e2m3/e3m2 inputs (kind::f8f6f4) landed in generated/register_mma.rs, plus sp::ordered_metadata sparse 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.

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.

Note: These require the kind::f8f6f4 suffix 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)

References

Activity

  1. honeyspoon commented on Jul 18, 2026

    @honeyspoon
    ContributorAuthor

    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.toml and regenerate — see #406 for the full workflow.

  2. added
    tracking
    enhancement
    intrinsics
    cuda-feature
    on Jul 27, 2026
  3. added this to the cuda oxide v0.5.0 milestone on Oct 25, 2026
  4. added
    cuda-oxide
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cuda-featurecuda-oxideenhancementintrinsicstracking

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions