For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
CDNA4F8F6F4MatrixFormat
struct CDNA4F8F6F4MatrixFormat
Represents the CDNA4 f8f6f4 operand format selector.
Implemented traitsβ
AnyType,
Copyable,
Equatable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
FLOAT4_E2M1β
comptime FLOAT4_E2M1 = CDNA4F8F6F4MatrixFormat(Int(4))
FLOAT6_E2M3β
comptime FLOAT6_E2M3 = CDNA4F8F6F4MatrixFormat(Int(2))
FLOAT6_E3M2β
comptime FLOAT6_E3M2 = CDNA4F8F6F4MatrixFormat(Int(3))
FLOAT8_E4M3β
comptime FLOAT8_E4M3 = CDNA4F8F6F4MatrixFormat(Int(0))
FLOAT8_E5M2β
comptime FLOAT8_E5M2 = CDNA4F8F6F4MatrixFormat(Int(1))
Methodsβ
__init__β
def __init__(value: Int) -> Self
__eq__β
simd_widthβ
def simd_width(self) -> SIMDLength
Returns the operand fragment width, in bytes, this format expects.
FP6 holds only 24 payload bytes, but 24 is not a power of two, so it asks for 32. InstCombine narrows the operand back down, so the padding costs nothing. Stage FP6 loads as 24 bytes, not 32.
Returns:
SIMDLength: The fragment width in bytes.