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
validate_config
def validate_config[BM: Int, BN: Int, BK: Int, WM: Int, WN: Int, WK: Int, m_warps: Int, n_warps: Int, producer_a: Int, producer_b: Int, consumer: Int]()
Validates the configuration parameters for the matrix multiplication kernel.
Parameters:
- βBM (
Int): Block tile size along the M dimension, must be divisible byWM. - βBN (
Int): Block tile size along the N dimension, must be divisible byWN. - βBK (
Int): Block tile size along the K dimension. - βWM (
Int): Warp tile size along the M dimension. - βWN (
Int): Warp tile size along the N dimension. - βWK (
Int): Warp tile size along the K dimension. - βm_warps (
Int): Number of warps covering the M dimension of the block, must be divisible byproducer_a. - βn_warps (
Int): Number of warps covering the N dimension of the block, must be divisible byproducer_b. - βproducer_a (
Int): Number of warps assigned to loading matrix A tiles. - βproducer_b (
Int): Number of warps assigned to loading matrix B tiles. - βconsumer (
Int): Number of warps assigned to computing the matmul, must be a power of two and at leastproducer_aandproducer_b.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!