Skip to content

Tracking: Ampere SM80+ device intrinsics #274

Open

Description

@honeyspoon

What problem does this solve?

cuda-oxide supports several SM 80+ intrinsics on main (redux.sync, ldmatrix x2/x4, stmatrix, cp.async ca/cg 16, cvt.rn.f16x2.f32, fma.rn.bf16x2, mbarrier, elect.sync, lanemask registers), but the Ampere ISA has substantially more intrinsics important for inference and training workloads: tensor core MMA, packed arithmetic, integer dot products, and additional conversion/memory variants. This tracks filling those gaps.

Status update (July 2026)

Upstream PR #406 merged: All CUDA intrinsic APIs and lowering are now autogenerated from pinned LLVM 22 data. The generator admitted 781 intrinsic contracts with stable IDs. This supersedes all hand-written intrinsic PRs below — the unchecked items are now covered by the autogen system and no longer need individual PRs.

Superseded PRs: #332 (f16x2), #333 (prmt), #334 (mixed INT8 MMA), and fork PRs for dp2a.hi, cp.async pipeline, sparse MMA, stmatrix x1.

To add a missing intrinsic: append to intrinsics/overlay/*.toml + intrinsics/abi-v1.toml and regenerate. See #406 description for the full contributor workflow.

Scope

Each item follows the established 4-layer pattern (cuda-device > dialect-nvvm > mir-importer > mir-lower) plus lowering tests. Inline asm ops use the AsmKind enum (PR #195). Multi-variant families use parameterized dispatch helpers.

Phase 1: Self-contained extensions of existing features

Phase 2: Matrix operations

Phase 3: mma.sync tensor core family

Phase 4: Miscellaneous

Phase 5: cp.async pipeline control

Phase 6: Packed f16x2 arithmetic

Phase 7: Additional conversions and integer variants

Phase 8: Sparse MMA (Ampere structured sparsity)

Additional context

Activity

  1. added
    intrinsics
    cuda-feature
    enhancement
    on Jun 24, 2026
  2. added
    tracking
    on Jun 24, 2026
  3. 17 remaining items

  4. added
    device-apis
    on Jul 3, 2026
  5. added
    examples
    on Jul 21, 2026
  6. added this to the cuda oxide v0.5.0 milestone on Oct 25, 2026
  7. 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

    IR-loweringcodegencuda-featurecuda-oxidedevice-apisenhancementepicexamplesintrinsicsteststracking

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions