Skip to main content

Mojo module

structuring

Aliases

eval

alias eval[T: AnyType, //, val: T] = val

Helper alias to force evaluation of expressions at compile time.

Parameters

RegTileType

alias RegTileType[_dtype: DType, layout: Layout, alignment: Int = align_of[SIMD[_dtype, simd_width_of[_dtype]()]]()] = LayoutTensor[_dtype, layout, MutableAnyOrigin, address_space=AddressSpace(5), alignment=alignment]

Type alias for register (local memory) tile tensors.

Parameters

SMemBarrier

alias SMemBarrier = UnsafePointer[SharedMemBarrier, address_space=AddressSpace(3)]

Type alias for shared memory barrier pointer.

SMemTileType

alias SMemTileType[_dtype: DType, layout: Layout, alignment: Int = align_of[SIMD[_dtype, simd_width_of[_dtype]()]]()] = LayoutTensor[_dtype, layout, MutableAnyOrigin, address_space=AddressSpace(3), alignment=alignment]

Type alias for shared memory tile tensors.

Parameters

SMemWarpTileType

alias SMemWarpTileType[_dtype: DType, layout: Layout, warp_rows: Int, warp_cols: Int] = LayoutTensor[_dtype, LayoutTensor._compute_tile_layout[True, _dtype, layout, MutableAnyOrigin, AddressSpace(3), Layout(IntTuple(1), IntTuple(1)), _get_layout_type(layout, AddressSpace(3)), _get_index_type(layout, AddressSpace(3)), False, align_of[SIMD[_dtype, simd_width_of[_dtype]()]](), warp_rows, warp_cols]()[0], MutableAnyOrigin, address_space=AddressSpace(3), layout_int_type=_get_layout_type(layout, AddressSpace(3)), linear_idx_type=_get_index_type(layout, AddressSpace(3)), masked=_tile_is_masked[layout, warp_rows, warp_cols](), alignment=align_of[SIMD[_dtype, simd_width_of[_dtype]()]]()]

Type alias for warp-level shared memory tiles with specified dimensions.

Parameters

Structs

Was this page helpful?