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:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!