Skip to main content

Mojo struct

TMAtoCvtPipeline

@register_passable(trivial) struct TMAtoCvtPipeline[num_kv_stages: Int, num_producer: Int, num_consumer: Int]

Fields

  • consumer_mbars (MBarType):
  • producer_mbars (MBarType):
  • state (PipelineState[num_kv_stages]):

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

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

Methods

__init__

__init__(consumer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], producer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self

init

init(self)

producer_mbar

producer_mbar(self) -> MBarType

Returns:

MBarType

consumer_mbar

consumer_mbar(self) -> MBarType

Returns:

MBarType

producer_acquire

producer_acquire(self)

consumer_wait

consumer_wait(self)

producer_commit

producer_commit(mut self)

consumer_release

consumer_release(mut self)

step

step(mut self)

Was this page helpful?