IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Mojo function

pointwise_splitk_combine

def pointwise_splitk_combine[params: ContextParams, //, State: ReduceOp](ctx: Context[params], reduce_index: Int) -> State

Joins the row's num_splits partials for reduce reduce_index into the finalized global state. Every worker runs this independently.

Parameters:

  • ​params (ContextParams): Comptime dispatch parameters.
  • ​State (ReduceOp): The monoid type being combined.

Args:

  • ​ctx (Context[params]): The dispatch bundle.
  • ​reduce_index (Int): Order index of the reduce within the body.

Returns:

State: The finalized row-wide state.

Was this page helpful?