Intel Vulkan Driver Enables Cooperative Matrix Support For Xe2 GPUs

Written by Michael Larabel in Intel on 26 June 2024 at 06:25 AM EDT. Add A Comment
INTEL
Intel's open-source Linux graphics driver developers continue to be quite busy in preparing for the Xe2 next-generation graphics to be found with forthcoming Lunar Lake processors and the Battlemage discrete graphics cards.

Ian Romanick's work on enabling cooperative matrix support for Xe2 platforms was merged on Tuesday to Mesa 24.2-devel. This code is far enough along that the Vulkan VK_KHR_cooperative_matrix extension has been merged but the actual plumbing bits of cooperatix matrix support. This week's merge adds the cooperative matrix configurations for Lunar Lake while any Battlemage configuration changes still need to be merged separately.

Intel Xe2 features


VK_KHR_cooperative_matrix debuted last year in Vulkan 1.3.255 for cooperative matrix types with SPIR-V integration after NVIDIA previously maintained their own vendor-specific cooperative matrix support. The Vulkan cooperative matrix support is important for helping accelerate machine learning. As explained in the Vulkan spec:
"This extension adds support for using cooperative matrix types in SPIR-V. Cooperative matrix types are medium-sized matrices that are primarily supported in compute shaders, where the storage for the matrix is spread across all invocations in some scope (usually a subgroup) and those invocations cooperate to efficiently perform matrix multiplies.

Cooperative matrix types are defined by the SPV_KHR_cooperative_matrix SPIR-V extension and can be used with the GLSL_KHR_cooperative_matrix GLSL extension.

This extension includes support for enumerating the matrix types and dimensions that are supported by the implementation."

More details on the Intel Xe2 Vulkan cooperative matrix support via this merge that is now in Mesa 24.2 Git.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week