feature: Add product helper for shared system USM enabling

Related-To: NEO-16531

Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
John Falkowski
2025-11-17 15:22:19 +00:00
committed by Compute-Runtime-Automation
parent fda9c7d0b1
commit 02848968be
19 changed files with 126 additions and 13 deletions

View File

@@ -1115,7 +1115,7 @@ TEST_F(DeviceGetCapsTest, whenDeviceIsCreatedThenMaxParameterSizeIsSetCorrectly)
TEST_F(DeviceGetCapsTest, givenUnifiedMemorySharedSystemFlagWhenDeviceIsCreatedThenSystemMemoryIsSetCorrectly) {
DebugManagerStateRestore dbgRestore;
debugManager.flags.EnableSharedSystemUsmSupport.set(-1);
debugManager.flags.EnableSharedSystemUsmSupport.set(0);
auto device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(defaultHwInfo.get()));
device->getRootDeviceEnvironment().getMutableHardwareInfo()->capabilityTable.sharedSystemMemCapabilities = 0;
EXPECT_FALSE(device->areSharedSystemAllocationsAllowed());