For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
DecodeOutProducer
struct DecodeOutProducer[dtype: DType, config: MLA_SM100_Decode_Config]
Fieldsβ
- βpipe (
DecodeOutProducer[dtype, config].OutPipeType): - βsmem (
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
block_per_warpβ
comptime block_per_warp = ((config // Int(2)) // (config // Int(4)))
blocks_per_stageβ
comptime blocks_per_stage = Int(2) if (((config // Int(2)) // (config // Int(4))) != Int(0)) else Int(1)
col_per_warpβ
comptime col_per_warp = (config // Int(2))
num_out_blocksβ
comptime num_out_blocks = (config // (config // Int(4)))
num_out_stagesβ
comptime num_out_stages = ((config // (config // Int(4))) // Int(2) if (xor (eq ((config // Int(2)) // (config // Int(4))), 0), True) else Int(1))
out_stage_bytesβ
comptime out_stage_bytes = (Int((mul (config // Int(4)), config.BM)) * size_of[dtype]())
out_stage_elemsβ
comptime out_stage_elems = (config * (config // Int(4)))
OutPipeTypeβ
comptime OutPipeType = OutPipeline[((config // (config // Int(4))) // Int(2) if (xor (eq ((config // Int(2)) // (config // Int(4))), 0), True) else Int(1)), _resolve_warpgroup_size(), Int(1)]
Methodsβ
__init__β
def __init__(pipe: OutPipeline[((config // (config // Int(4))) // Int(2) if (xor (eq ((config // Int(2)) // (config // Int(4))), 0), True) else Int(1)), _resolve_warpgroup_size(), Int(1)], smem: UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
initβ
def init(self)
stage_base_ptrβ
def stage_base_ptr(self, half_idx: Int) -> UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
Returns:
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
producer_mbarβ
def producer_mbar(self) -> MBarType
Returns:
MBarType
acquireβ
def acquire(self)
commit_stepβ
def commit_step(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!