IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/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, ImplicitlyCopyable, ImplicitlyDeletable, Movable, RegisterPassable, TrivialRegisterPassable

Methods​

__init__​

def __init__(mbar_base: Pointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED, _safe=False]) -> 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

Was this page helpful?