Skip to main content

Mojo struct

InputProducer

@register_passable(trivial) struct InputProducer[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]

Producer view for TMA Load warp (input pipeline).

Fields

  • pipeline_ptr (Pointer[InputProducer[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)

drain

drain(mut self)

Drain pipeline to prevent CTA exit while peer is still working.

acquire

acquire(mut self) -> ProducerStage[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 slot availability.

Returns:

ProducerStage

Was this page helpful?