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 module

schedulers

Scheduling algorithms: greedy and within-iteration optimal schedulers.

These are free functions that consume a LoopBody and return a permutation. The graph (LoopBody) never schedules itself β€” scheduling is an external concern. This follows the LLVM pattern where ScheduleDAG is pure data and MachineSchedStrategy is a separate pluggable component.

Note: the "optimal" scheduler minimizes within-iteration makespan (single iteration time span), not the initiation interval (II) used in modulo scheduling. Inter-iteration overlap is handled by the prologue/epilogue structure in program_builder, not by the scheduler. See DESIGN.md for scope and limitations.

Structs​

Functions​