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 trait
ScheduleOps
Base 'enum' for pipeline schedule operations.
Framework infrastructure ops have fixed defaults in the 128+ range. Kernel-specific ops should be defined in the 0-127 range by conforming structs. Each constant is a Self-typed value wrapping an Int tag.
Implemented traitsβ
comptime membersβ
BARRIERβ
comptime BARRIER = _Self.__init__(::Int)(128)
Workgroup-wide barrier (e.g. s_barrier on AMD).
NONEβ
comptime NONE = _Self.__init__(::Int)(255)
Sentinel value for an absent or unspecified op.
SCHED_GROUP_BARRIERβ
comptime SCHED_GROUP_BARRIER = _Self.__init__(::Int)(133)
LLVM scheduling-group barrier hint (s_sched_group_barrier).
SCHEDULE_BARRIERβ
comptime SCHEDULE_BARRIER = _Self.__init__(::Int)(132)
LLVM scheduling-barrier hint (schedule_barrier).
SET_PRIOβ
comptime SET_PRIO = _Self.__init__(::Int)(131)
Wave priority hint (e.g. s_setprio).
WAIT_LGKMβ
comptime WAIT_LGKM = _Self.__init__(::Int)(130)
Wait on outstanding LDS / scalar-memory ops (e.g. s_waitcnt lgkmcnt).
WAIT_VMβ
comptime WAIT_VM = _Self.__init__(::Int)(129)
Wait on outstanding global-memory loads (e.g. s_waitcnt vmcnt).
Required methodsβ
__init__β
__init__(out self: _Self, value: Int)
Returns:
_Self
Provided methodsβ
__eq__β
__eq__(self: _Self, other: _Self) -> Bool
Define whether two instances of the object are equal to each other.
The default implementation uses reflection to compare all fields for
equality. All fields must conform to Equatable.
Args:
- βother (
_Self): Another instance of the same type.
Returns:
Bool: True if the instances are equal according to the type's definition
of equality, False otherwise.
__ne__β
__ne__(self: _Self, other: _Self) -> Bool
Define whether two instances of the object are not equal to each other.
Args:
- βother (
_Self): Another instance of the same type.
Returns:
Bool: True if the instances are not equal according to the type's
definition of equality, False otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!