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
splitk_grid
def splitk_grid(a_rows: Int, b_rows: Int, block_m: Int, mma_n: Int, cluster_m: Int, cluster_n: Int, num_split_k: Int) -> IndexList[Int(3)]
Returns the split-K launcher's grid: one CTA per output tile and split.
Args:
- a_rows (
Int): Rows of the A operand the kernel loads (B's rows when A and B are swapped). - b_rows (
Int): Rows of the B operand the kernel loads. - block_m (
Int): Block tile rows along A (MMA_M // cta_group). - mma_n (
Int): MMA tile columns along B. - cluster_m (
Int): Cluster extent along A. - cluster_n (
Int): Cluster extent along B. - num_split_k (
Int): Number of K splits.
Returns:
IndexList[Int(3)]: The grid as (A tiles, B tiles, splits).