Radeon Linux Driver Adds Option To Limit Number Of Enabled CUs

Written by Michael Larabel in Radeon on 5 January 2022 at 05:08 AM EST. 18 Comments
RADEON
The RadeonSI Gallium3D and RADV Vulkan drivers within Mesa 22.0 have now added an override for controlling the number of enabled compute units (CUs) for the graphics processor.

Longtime AMD open-source Mesa developer Marek Olšák introduced this new AMD_CU_MASK= environment variable override as a way of controlling the number of CUs enabled -- to artificially limit the number of compute units enabled -- for both RadeonSI and RADV drivers.

AMD_CU_MASK can be set to an ID list of the compute units to enabled or a list of the compute units to enable, with syntax format examples such as "0x337F" or "0,2-4,7".

This AMD_CU_MASK override was requested internally within AMD while may have some usefulness externally as well for those wanting to analyze the performance impact of lower CU counts and analyzing how different workloads behave or scale with varying compute unit counts, etc.

See this merge request, which was merged into Mesa 22.0-devel today, if interested in this ability for limiting the number of enabled CUs for Radeon GPUs.
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