Mojo struct
InputConsumer
@register_passable(trivial)
struct InputConsumer[origin: MutOrigin, a_type: DType, b_type: DType, a_tile_layout: Layout, b_tile_layout: Layout, num_pipeline_stages: Int, num_group_stages: Int, k_group_size: Int]
Consumer view for MMA warp (input pipeline).
Fields
- pipeline_ptr (
Pointer[InputConsumer[origin, a_type, b_type, a_tile_layout, b_tile_layout, num_pipeline_stages, num_group_stages, k_group_size].TilePipelineType, origin]):
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
TilePipelineType
comptime TilePipelineType = TilePipeline[a_type, b_type, a_tile_layout, b_tile_layout, num_pipeline_stages, num_group_stages, k_group_size]
Methods
__enter__
__enter__(mut self) -> Self
__exit__
__exit__(mut self)
acquire
acquire(mut self) -> ConsumerStage[origin, a_type, b_type, a_tile_layout, b_tile_layout, num_pipeline_stages, num_group_stages, k_group_size]
Acquire next stage, waiting for tiles to be ready.
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!