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

coop_row_words

def coop_row_words(batch_size: Int, group_size: Int) -> Int

Returns the workspace size in Int32 words.

Args:

  • ​batch_size (Int): Number of rows in the launch.
  • ​group_size (Int): Blocks cooperating on each row.

Returns:

Int: The number of words to allocate. The launcher must initialize them to zero before each launch.

Was this page helpful?