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 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​

AnyType, Equatable

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.