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

cutoff_hist_words

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

Returns the cross-block cutoff histogram workspace size in words.

Args:

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

Returns:

Int: The number of UInt64 words to allocate. Every block writes its whole slot before reading its peers', so the workspace needs no initialization.

Was this page helpful?