In this article
Require device properties, shader execution and numerical agreement for the exact matrix variant before selecting it.
Mesa 26.3.0 release coverage lists the cooperative matrix maintenance extension for RADV and Lavapipe. The Khronos specification adds operations and a more detailed properties query. For inference, the relevant question is whether a particular shader variant and matrix configuration execute on the selected physical device with correct results.
Query the device used by the workload
Enumerate the physical device from the same container and driver configuration used for inference. Record the driver and available feature bits. Lavapipe is a software implementation, so an extension name can appear even if the application selected a software path. Keep software and hardware measurements in separate rows.
Check shape and subgroup constraints
Khronos describes a query that can include the desired subgroup size. Match component types, matrix dimensions and scope to your shader. Use the properties result to choose an eligible variant. An advertised extension alone does not establish that the tile layout selected for a particular model is supported.
Validate the actual operations
Build a minimal shader for the operation you need, such as a reduction or elementwise operation. Compare results with a reference over normal and boundary values using an explicit tolerance. Then run the same operation in a model graph to catch integration differences in layout, precision and synchronization.
Keep fallback and performance observable
When a property or operation is missing, verify that the runtime selects its baseline variant and produces correct output. For the enabled path, measure end-to-end model latency as well as kernel time. Record the Mesa build and device for each row so an upgrade cannot accidentally inherit evidence from a different driver.
Primary sources
- Mesa release archive
- Mesa 26.3 release feature summary
- Khronos cooperative matrix maintenance specification
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.