Mojo function
write_gemm_output_with_bounds_check
write_gemm_output_with_bounds_check[c_type: DType, accum_type: DType, c_layout: Layout, c_reg_layout: Layout, /, *, c_tile_shape: IndexList[2], wgmma_shape: IndexList[3], num_consumer: Int = 1, elementwise_lambda_fn: OptionalReg[fn[dtype: DType, width: Int, *, alignment: Int = 1](IndexList[2], SIMD[dtype, width]) capturing -> None] = None](c: LayoutTensor[c_type, c_layout, MutableAnyOrigin, address_space=address_space, element_layout=element_layout, layout_int_type=layout_int_type, linear_idx_type=linear_idx_type, masked=masked, alignment=alignment], c_reg_tile: LayoutTensor[accum_type, c_reg_layout, MutableAnyOrigin, address_space=AddressSpace(5), alignment=alignment], warp_group_thread_idx: UInt, local_warp_group_idx: UInt, block_y: Int, block_x: Int)
Simplified bounds-checked output - handles arbitrary matrix dimensions.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!