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 function

double_buffer_reorder

double_buffer_reorder(logical: List[OpDesc], config: PipelineConfig) -> List[OpDesc]

Reorder a double-buffer spec's logical ops into interleaved execution order.

The spec provides ops in logical order: half0 ops followed by half1 ops. This function splits at the midpoint, applies mma_block_interleave to each half independently, and concatenates the results.

Returns:

List[OpDesc]