For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
MMAConfig
struct MMAConfig[InType: DType, OutType: DType, mma_shape: IndexList[Int(3)], transpose_b: Bool = True]
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
k_group_size_aβ
comptime k_group_size_a = (simd_width_of[InType]() // num_matrix_reg[mma_shape[Int(0)], mma_shape[Int(2)]]())
k_group_size_bβ
comptime k_group_size_b = (simd_width_of[InType]() // num_matrix_reg[mma_shape[Int(1)], mma_shape[Int(2)]]())
mmaβ
comptime mma = TensorCore()
registers_per_thread_aβ
comptime registers_per_thread_a = num_matrix_reg[mma_shape[Int(0)], mma_shape[Int(2)]]()
registers_per_thread_bβ
comptime registers_per_thread_b = num_matrix_reg[mma_shape[Int(1)], mma_shape[Int(2)]]()
simd_widthβ
comptime simd_width = simd_width_of[InType]()
Methodsβ
adjusted_mma_k_shape_aβ
adjusted_mma_k_shape_bβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!