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
LoadOrderBarrierStorage
struct LoadOrderBarrierStorage
Storage for load order barrier (mainloop β epilogue load coordination).
This single barrier coordinates the mainloop load warp with the epilogue load warp, ensuring the epilogue load doesn't start before the mainloop has issued its prologue TMA operations.
Protocol:
- Mainloop load warp issues prologue loads
- Mainloop load warp calls arrive() on this barrier
- Epilogue load warp waits on this barrier before starting
This prevents TMA resource contention between mainloop and epilogue loads.
Fieldsβ
- βbarrier_storage (
LoadOrderBarrierStorage.BarrierArray.Storage):
Implemented traitsβ
AnyType,
ImplicitlyDestructible
comptime membersβ
BarrierArrayβ
comptime BarrierArray = SMemArray[SharedMemBarrier, 1]
Methodsβ
barrierβ
barrier(ref[AddressSpace._value] self) -> LoadOrderBarrierStorage.BarrierArray
Get the load order barrier.
Returns:
LoadOrderBarrierStorage.BarrierArray
ptrβ
ptr(ref[AddressSpace._value] self) -> MbarPtr
Get raw barrier pointer for initialization.
Returns:
MbarPtr
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!