Mojo struct
FA4MiscMBars
@register_passable(trivial)
struct FA4MiscMBars
Fields
- mbar_base (
LegacyUnsafePointer[SharedMemBarrier, address_space=AddressSpace.SHARED]):
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
Movable,
UnknownDestructibility
Aliases
__copyinit__is_trivial
comptime __copyinit__is_trivial = True
__del__is_trivial
comptime __del__is_trivial = True
__moveinit__is_trivial
comptime __moveinit__is_trivial = True
C0_offset
comptime C0_offset = 4
C1_offset
comptime C1_offset = 6
order_offset
comptime order_offset = 8
Q1SyncIdx
comptime Q1SyncIdx = 10
S0_offset
comptime S0_offset = 0
S1_offset
comptime S1_offset = 2
size
comptime size = 11
Methods
__init__
__init__(mbar_base: LegacyUnsafePointer[SharedMemBarrier, address_space=AddressSpace.SHARED]) -> Self
init
init(self)
producer_s0
producer_s0(self) -> ProducerPipeline[1]
Returns:
ProducerPipeline
producer_s1
producer_s1(self) -> ProducerPipeline[1]
Returns:
ProducerPipeline
consumer_s
consumer_s(self, wg_idx: UInt32) -> ConsumerPipeline[1]
Returns:
ConsumerPipeline
consumer_c0
consumer_c0(self) -> ConsumerPipeline[1]
Returns:
ConsumerPipeline
consumer_c1
consumer_c1(self) -> ConsumerPipeline[1]
Returns:
ConsumerPipeline
producer_c
producer_c(self, wg_idx: UInt32) -> ProducerPipeline[1]
Returns:
ProducerPipeline
pipeline_order_wait
pipeline_order_wait(self, wg_idx: UInt32) -> LegacyUnsafePointer[SharedMemBarrier, address_space=AddressSpace.SHARED]
Returns:
pipeline_order_arrive
pipeline_order_arrive(self, wg_idx: UInt32) -> LegacyUnsafePointer[SharedMemBarrier, address_space=AddressSpace.SHARED]
Returns:
q1_wait_mbar
q1_wait_mbar(self) -> ref [MutAnyOrigin, 3] SharedMemBarrier
Returns:
ref
end
end(self) -> LegacyUnsafePointer[SharedMemBarrier, address_space=AddressSpace.SHARED]
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!