v_wmma_bf16_16x16x16_bf16 GPU Native ISA AMD Matrix
Vector Packed Arithmetic
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…
Encoding
The ENC_VOP3P layout from AMD's machine-readable ISA specification (AMD RDNA 4). Opcode 67 in OP rebuilds 0x00000000CC430000, an identifier AMD lists for this encoding. Bits marked unassigned have no field in the specification. Not the same in every generation: AMD RDNA 3.5 (field layout), AMD RDNA 3 (field layout).
Operands
-
VDST
Written. Operand must be a vector GPR. Uses an 8-bit operand field. Data format: WMMA destination (D) or accumulator (C) 16x16 matrix with 16-bit brain float values. WMMA DC matrices are 16x16 (or larger) and the individual elements are packed. The total number of VGPRs required depends on the wave size. (OPR_VGPR, FMT_WMMA_DC_16X16_BF16) -
SRC0
Read. Operand must be a vector GPR. Uses a 9-bit operand field. Data format: WMMA 16x16 multiplicand matrix (A or B) with 16-bit brain float values. WMMA AB matrices are 16x16 (or larger) and the individual elements are packed; each VGPR lane can contain 2 16-bit elements, 4 8-bit elements or 8 4-bit elements. (OPR_SRC_VGPR, FMT_WMMA_AB_16X16_BF16) -
SRC1
Read. Operand must be a vector GPR. Uses a 9-bit operand field. Data format: WMMA 16x16 multiplicand matrix (A or B) with 16-bit brain float values. WMMA AB matrices are 16x16 (or larger) and the individual elements are packed; each VGPR lane can contain 2 16-bit elements, 4 8-bit elements or 8 4-bit elements. (OPR_SRC_VGPR, FMT_WMMA_AB_16X16_BF16) -
SRC2
Read. Operand must be a vector GPR or an inline constant (no literal constants or scalar GPRs). Uses a 9-bit operand field. Data format: WMMA destination (D) or accumulator (C) 16x16 matrix with 16-bit brain float values. WMMA DC matrices are 16x16 (or larger) and the individual elements are packed. The total number of VGPRs required depends on the wave size. (OPR_SRC_VGPR_OR_INLINE, FMT_WMMA_DC_16X16_BF16)
In AMD's order, as its machine-readable ISA specification lists them for the ENC_VOP3P encoding (AMD RDNA 4).
GFX Target Compatibility
Per-target GFX compatibility has not yet been verified for this instruction.
Related
More in Vector Packed Arithmetic
Reference
Description
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.