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

pad

def pad[dtype: DType, depth: Int, size: Int]() -> Int

V-SMEM row padding to avoid bank conflicts. Skipped for depth=64.

Parameters:

  • โ€‹dtype (DType): Element type of the stored values; determines the SIMD width used to compute the padding stride.
  • โ€‹depth (Int): Matrix depth in elements; padding is skipped when equal to 64.
  • โ€‹size (Int): Base row size in elements before padding is applied.

Returns:

Int

Was this page helpful?