Skip to main content

Mojo function

store_fragment_to_smem

store_fragment_to_smem[vec_dtype: DType, vec_size: Int, //, swizzle: Swizzle, stageN: Int, transpose_c: Bool = False, c_swizzle: TensorMapSwizzle = TensorMapSwizzle.SWIZZLE_128B](vec: InlineArray[Scalar[vec_dtype], vec_size], dst: LayoutTensor[dst._dtype, dst.layout, MutAnyOrigin, address_space=AddressSpace.SHARED, element_layout=dst.element_layout, layout_int_type=dst.layout_int_type, linear_idx_type=dst.linear_idx_type, masked=dst.masked, alignment=dst.alignment], warp_offset: UInt32 = 0)

Store fragment to SMEM via st.matrix instruction.

store_fragment_to_smem[vec_dtype: DType, vec_size: Int, //, swizzle: Swizzle, stageN: Int, transpose_c: Bool = False, c_swizzle: TensorMapSwizzle = TensorMapSwizzle.SWIZZLE_128B](vec: InlineArray[Scalar[vec_dtype], vec_size], dst: TileTensor[dst.dtype, dst.LayoutType, dst.origin, address_space=AddressSpace.SHARED, linear_idx_type=dst.linear_idx_type, element_size=dst.element_size], warp_offset: UInt32 = 0)

Store fragment to SMEM via st.matrix.

Was this page helpful?