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

EpiLoadPipelineStorage

struct EpiLoadPipelineStorage[num_stages: Int]

Storage for epilogue load pipeline (source C loading).

For EpilogueLoad warp β†’ Epilogue warps synchronization. The epilogue load warp loads source tensor C into SMEM, and the epilogue warps consume it for residual operations.

Producer: EpilogueLoad warp (1 warp, 32 threads) Consumer: Epilogue warps (4 warps, 128 threads)

Parameters​

  • ​num_stages (Int): Number of epilogue load pipeline stages (typically 2).

Fields​

  • ​barriers (BarrierPair[num_stages]):

Implemented traits​

AnyType, ImplicitlyDestructible

comptime members​

BarrierArray​

comptime BarrierArray = SMemArray[SharedMemBarrier, (num_stages * 2)]

Methods​

create_pipeline​

create_pipeline(ref[AddressSpace._value] self) -> ProducerConsumerPipeline[num_stages]

Create runtime pipeline from this storage.

Returns:

ProducerConsumerPipeline[num_stages]

barrier_ptr​

barrier_ptr(ref[AddressSpace._value] self) -> MbarPtr

Escape hatch: Get raw barrier pointer.

Returns:

MbarPtr