Mojo struct
DecodeKVConsumer
@register_passable(trivial)
struct DecodeKVConsumer[dtype: DType, config: MLA_SM100_Decode_Config]
Fields
- pipe (
DecodeKVConsumer[dtype, config].KVPipeType): - smem (
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]):
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable
comptime members
__copyinit__is_trivial
comptime __copyinit__is_trivial = True
__del__is_trivial
comptime __del__is_trivial = True
__moveinit__is_trivial
comptime __moveinit__is_trivial = True
kv_stage_elems
comptime kv_stage_elems = (config * config)
KVPipeType
comptime KVPipeType = KVPipelineGeneric[config.num_kv_stages, 1, 1, 2]
Methods
__init__
__init__(pipe: KVPipelineGeneric[config.num_kv_stages, 1, 1, 2], smem: UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
stage_base_ptr
stage_base_ptr[*, mma_stage: Int = 0](self) -> UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
Returns:
stage_index
wait
wait[*, mma_stage: Int = 0](self)
release
release[*, mma_stage: Int = 0](mut self, e: Int32)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!