Mojo struct
OutPipeline
struct OutPipeline[num_out_stages: Int, num_producer: Int, num_consumer: Int]
OutPipeline has num_out_stages stages. num_out_stages refers to how many output stages we pipeline for performing the output store.
Fieldsβ
- βmbar (
MBarType): - βstate (
PipelineState[OutPipeline[num_out_stages, num_producer, num_consumer].num_stages]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime membersβ
num_stagesβ
comptime num_stages = num_out_stages
Methodsβ
__init__β
__init__(mbar: 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)
Returns the dynamic pipe idx.
consumer_waitβ
consumer_wait(self)
consumer_releaseβ
consumer_release(mut self, e: Int32)
producer_commitβ
producer_commit(mut self)
num_mbarsβ
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!