Mojo function
make_ldmatrix_swizzle
make_ldmatrix_swizzle[type: DType, row_size: Int, log2_vector_width: Int = 0]() -> Swizzle
Make swizzle to avoid bank conflict for ldmatrix ops.
Creates a swizzle pattern optimized for ldmatrix
operations.
Minimizes bank conflicts in shared memory for these operations.
Calculates swizzle parameters based on data type and row size.
Parameters:
- type (
DType
): The data type of the elements. - row_size (
Int
): Size of each row in elements. - log2_vector_width (
Int
): Log2 of the vector width (default: 0).
Returns:
A Swizzle
object configured for ldmatrix
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!