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 function
optimize_within_barriers
optimize_within_barriers(body: List[OpDesc], config: PipelineConfig) -> List[OpDesc]
CSP-optimize op ordering within barrier-delimited segments.
Barriers (OpRole.SYNC) are fixed ordering points. Non-barrier ops between consecutive barriers form segments. Each segment is independently optimized via the CSP backtracking solver to minimize makespan.
Edges are derived from the full body, then filtered per segment. Only d=0 (intra-iteration) edges are relevant for segment-local ordering.
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!