For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
ReduceTier
struct ReduceTier
GPU tier discriminator for the row-wise scaffolder. Mutually exclusive by construction (a single field, not independent bools): Block is the default (also every CPU tier, where only emit_tile_width/simd_width matter). Scaffolder-internal β a body never reads Context._tier.
Fieldsβ
- βvalue (
Int):
Implemented traitsβ
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
Blockβ
comptime Block = ReduceTier(Int(0))
Block-per-row (or block-per-output) cooperative tier β the default. Also the tag used for every CPU tier.
Serialβ
comptime Serial = ReduceTier(Int(2))
One thread per row (unused; kept for future scalar-fallback dispatches; GPU only).
Splitkβ
comptime Splitk = ReduceTier(Int(3))
Multiple blocks cooperate on one row when num_rows < sm_count would otherwise leave SMs idle (GPU only).
Warpβ
comptime Warp = ReduceTier(Int(1))
Warp-per-row: one warp covers the whole row (GPU only).
Methodsβ
__init__β
def __init__(value: Int) -> Self