v_mfma_f32_16x16x16f16 GPU Native ISA AMD Matrix
Matrix Core Operations
Matrix-fused-multiply-add: cooperative 16x16x16 matrix-multiply-accumulate on matrix-core hardware, fp16 inputs, fp32 accumulate.
Also written as
v_mfma_f32_16x16x16_f16.
AMD's machine-readable ISA specification lists this name for the same instruction.
Encoding
The VOP3P_MFMA layout from AMD's machine-readable ISA specification (AMD CDNA 2). Opcode 77 in OP rebuilds 0x00000000D3CD0000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 1 (field layout).
Operands
-
D
Accumulator fragment (destination, VGPR range) -
A
Matrix A fragment (VGPR range) -
B
Matrix B fragment (VGPR range) -
C
Accumulator fragment (input, VGPR range)
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx942 | ✅ Supported |
| gfx1100 | - Not implemented |
Matrix-core (MFMA) instructions are a CDNA-family feature; gfx1100 (RDNA3) does not implement this specific MFMA variant - see the AMDGPU landing page's target compatibility notes.
Related PTX Concepts
Related
More in Matrix Core Operations
Reference
Description
Semantics
Example
v_mfma_f32_16x16x16f16 a[0:3], v[0:3], v[4:7], a[0:3] // 16x16x16 MFMA accumulateOriginal illustrative example, written for this site (not reproduced from a specific AMD document).
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.