Mojo struct
KVLoad2CvtConsumer
struct KVLoad2CvtConsumer[dtype: DType, config: MLA_SM100_Decode_Config]
Fieldsβ
- βpipe (
KVLoad2CvtConsumer[dtype, config].PipeT): - βsmem_upper_fp8 (
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
bf16_stage_elemsβ
comptime bf16_stage_elems = (config * config)
fp8_stage_stride_elemsβ
comptime fp8_stage_stride_elems = (2 * KVLoad2CvtConsumer[dtype, config].bf16_stage_elems)
PipeTβ
comptime PipeT = KVPipelineGeneric[config.num_kv_stages, 1, (1 + 32 if (config > 0) else 0), (WARPGROUP_SIZE + 2)]
Methodsβ
__init__β
__init__(pipe: KVPipelineGeneric[config.num_kv_stages, 1, (1 + 32 if (config > 0) else 0), (WARPGROUP_SIZE + 2)], smem_upper_fp8: UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
stage_base_ptrβ
stage_base_ptr(self) -> UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
Returns:
UnsafePointer[Scalar[dtype], MutAnyOrigin, address_space=AddressSpace.SHARED]
waitβ
wait(self)
release_allβ
release_all(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!