Mojo package
gpu
comptime valuesβ
loggerβ
comptime logger = Logger(stdout, prefix=String(""), source_location=False)
Packagesβ
- β
amd: Provides the AMD GPU backend implementations for matmuls. - β
amd_rdna: Provides the AMD RDNA GPU backend implementations for matmuls. - β
sm100: Provides the Nvidia Blackwell backend implementations for matmuls. - β
sm100_structured: SM100 Structured Kernels - Blackwell matmul implementation. - β
sm80: Provides the CPU Hopper backend implementations for matmuls. - β
sm90: Provides the Nvidia Hopper backend implementations for matmuls.
Modulesβ
Functionsβ
- β
matmul_kernel: Matrix Multiplication using shared memory. This version loads blocks of size tile_size x tile_size from A and B and updates a tile_size x tile_size in C. The thread block should have shape (tile_size, tile_size, 1). Each thread is mapped one element in C. The grid should have shape (N/tile_size, M/tile_size, 1). N is the first dimension for coalesced access. - β
matmul_kernel_naive: - β
multistage_gemm: TileTensor overload ofmultistage_gemm. Converts to LayoutTensor and dispatches to the appropriate GEMM kernel. - β
split_k_reduce:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!