Skip to main content

Module spirv_xmx

Module spirv_xmx 

Source
Expand description

Intel Xe Matrix Extensions (XMX) SPIR-V kernel generators.

XMX is Intel’s matrix-multiply-accumulate hardware (analogous to NVIDIA Tensor Cores or AMD MFMA). It is exposed via the SPV_KHR_cooperative_matrix SPIR-V extension and the CooperativeMatrixKHR capability (SPIR-V 1.6 / GLSL 4.6).

This module provides:

Structs§

XmxTileConfig
Tile dimensions for XMX GEMM.

Functions§

best_xmx_tile
Best XMX tile configuration for the given device name.
device_supports_xmx
Whether the given Level Zero device name suggests XMX hardware support.
gemm_xmx_f16_spirv
Generate a SPIR-V binary for an XMX-accelerated FP16→FP32 GEMM kernel.
gemm_xmx_spirv
Generate a SPIR-V binary for an XMX-accelerated FP32 GEMM kernel.
matmul_xmx_bf16_spirv
Generate a SPIR-V binary for BF16 input / FP32 accumulation XMX GEMM.