v_mfma_f32_16x16x16f16 GPU Native ISA AMD Matrix
V MFMA F32 16X16X16F16 Matrix Core Operations
v_mfma_f32_16x16x16f16 D, A, B, C
Matrix-fused-multiply-add: cooperative 16x16x16 matrix-multiply-accumulate on matrix-core hardware, fp16 inputs, fp32 accumulate.
Encoding
Verified bit-level encoding data is not yet available for this instruction.
The instruction-format classification below (VOP3P-MAI)
is well-documented and stable; exact per-target opcode/field bit positions have not
yet been imported from a verified source.
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
AMDGPU / GFX ISA
Description
Multiply the 16x16 matrix in the first input by the 16x16 matrix in the second input and add the 16x16 matrix in the third input using fused multiply add. Store the resulting matrix into vector registers.
Semantics
D = A * B + C for a 16x16x16 tile, computed cooperatively across the wavefront; operand fragments are distributed across lanes per a hardware-defined layout specific to the MFMA family and target.
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.