Skip to content

[sm_121] Native block-scaled FP4 (NVFP4) tensor-core mma.sync works on GB10 — needs PTX 9.1 (CUDA 13.1+ driver) #6597

Open

Description

@lightofbaldr

Follow-up to #6570 (consumer Blackwell support) and #6594 / #6596 (NVFP4 enablement + naive dispatch).

While bringing up NVFP4 on a DGX Spark (GB10, sm_121), we confirmed the native warp-level block-scaled FP4 tensor-core MMA works on this hardware:

mma.sync.aligned.m16n8k64.row.col.kind::mxf4nvf4.block_scale.scale_vec::4X.f32.e2m1.e2m1.f32.ue4m3

Requirements found

  • Target sm_121a — plain sm_121 yields INVALID_PTX at runtime (cf. #6593).
  • PTX .version 9.1+ → requires a CUDA 13.1+ driver to JIT. On CUDA 13.0 it ptxas-assembles but fails at load with CUDA_ERROR_UNSUPPORTED_PTX_VERSION; verified end-to-end on driver 595 / CUDA 13.2.
  • float8 conversion: routing f8→float casts to the bit-manip fallback is needed on sm_121 (cf. #6594).

Validation

From-scratch tiled NVFP4 GEMM in Mojo using this MMA (m16n8k64 e2m1 fragment layout + the scale_vec::4X per-block e4m3 scale distribution per the PTX ISA). Bit-exact vs a host block-scaled reference (random data + random per-block scales, maxrel = 0.0). ~6 TFLOP/s at 2048³ with a naive warp-per-tile mapping (no smem staging yet) — ~19× the naive CUDA-core path from #6596.

Shows the consumer-Blackwell FP4 tensor cores are usable today via the warp-level mma.sync block-scale path (alongside tcgen05), gated only on the PTX-9.1/driver requirement. Happy to share layout details if useful. (Research-stage + driver-gated, so not submitting as a PR yet.)

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