Skip to content

Add typed standard narrow tcgen05 MMA aliases #1084

Closed

Description

@uurl

Summary

The tcgen05 catalog already supports narrow .kind::f8f6f4 MMA through the generic standard MMA surface, and warp-specialized typed aliases already exist for the narrow homogeneous formats.

What is still missing is the equivalent typed, checked convenience surface for standard non-warp-specialized MMA.

Add standard aliases for the five homogeneous narrow formats:

  • tcgen05_mma_e4m3
  • tcgen05_mma_e5m2
  • tcgen05_mma_e2m3
  • tcgen05_mma_e3m2
  • tcgen05_mma_e2m1

These should follow the existing generated intrinsic workflow rather than introducing handwritten wrappers.

Expected semantics

Each alias should select the standard shared MMA form with:

kind::f8f6f4
cta_group::1
collector::a::discard

and expose the compatibility signature:

pub unsafe fn tcgen05_mma_<format>(
    d_tmem: u32,
    a_desc: u64,
    b_desc: u64,
    idesc: u32,
    enable_d: bool,
)

Implementation requirements

  • Add the five variants through intrinsics/overlay/tcgen05.toml.
  • Append stable ABI entries to intrinsics/abi-v1.toml.
  • Generate the public device APIs, dialect operations, importer dispatch, lowering routes, target metadata, probes, and reference output.
  • Reuse the existing tcgen05 standard MMA selector model and LLVM symbol.
  • Preserve the existing warp-specialized aliases and generic standard MMA APIs.
  • Keep the compact tcgen05 MMA admission closed and deterministic.

Evidence

Both existing tcgen05 MMA evidence profiles should cover the five new aliases:

  • pinned Rust LLVM / NVPTX
  • CUDA 13.3 libNVVM

The generated probes should lower to:

tcgen05.mma.cta_group::1.kind::f8f6f4.collector::a::discard

Acceptance criteria

  • All five public aliases are generated.
  • All five ABI entries are appended without changing existing ABI identities.
  • Generated intrinsic outputs are current.
  • All five probes pass.
  • cargo test -p cuda-intrinsics-gen passes.
  • cargo oxide setup succeeds.
  • cargo oxide fmt --check passes.
  • scripts/smoketest.sh --compile-only passes.

Out of scope

  • Mixed narrow-format A/B aliases.
  • New first-class FP6 or FP4 arithmetic types.
  • Conversion intrinsics for FP6 or FP4.
  • Warp-specialized API changes.

Part of #339.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions