For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
DecodeSM100MiscMBars
struct DecodeSM100MiscMBars[num_stages: Int, num_producer: Int, num_consumer: Int]
Manages a generic producer/consumer mbarrier pair for the S, P, C, and O pipelines.
Parameters
- num_stages (
Int): Number of pipeline slots managed by the barrier pair. - num_producer (
Int): Number of producer threads arriving on each producer mbarrier. - num_consumer (
Int): Number of consumer threads arriving on each consumer mbarrier.
Fields
- mbar_base (
MBarType):
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methods
__init__
def __init__(mbar_base: Pointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
init
def init(self)
producer
def producer(self) -> RolePipeline[num_stages]
Returns:
RolePipeline[num_stages]
consumer
def consumer(self) -> RolePipeline[num_stages, False]
Returns:
RolePipeline[num_stages, False]
end
def end(self) -> MBarType
Returns:
MBarType