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 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__(::SIMD[DType.int, 1])(Int(128))
Workgroup-wide barrier (e.g. s_barrier on AMD).
NONE
comptime NONE = _Self.__init__(::SIMD[DType.int, 1])(Int(255))
Sentinel value for an absent or unspecified op.
SCHED_GROUP_BARRIER
comptime SCHED_GROUP_BARRIER = _Self.__init__(::SIMD[DType.int, 1])(Int(133))
LLVM scheduling-group barrier hint (s_sched_group_barrier).
SCHEDULE_BARRIER
comptime SCHEDULE_BARRIER = _Self.__init__(::SIMD[DType.int, 1])(Int(132))
LLVM scheduling-barrier hint (schedule_barrier).
SET_PRIO
comptime SET_PRIO = _Self.__init__(::SIMD[DType.int, 1])(Int(131))
Wave priority hint (e.g. s_setprio).
WAIT_LGKM
comptime WAIT_LGKM = _Self.__init__(::SIMD[DType.int, 1])(Int(130))
Wait on outstanding LDS / scalar-memory ops (e.g. s_waitcnt lgkmcnt).
WAIT_VM
comptime WAIT_VM = _Self.__init__(::SIMD[DType.int, 1])(Int(129))
Wait on outstanding global-memory loads (e.g. s_waitcnt vmcnt).
Required methods
__init__
def __init__(out self, value: Int)
Returns:
_Self