mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
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:
committed by
Compute-Runtime-Automation
parent
fda9c7d0b1
commit
02848968be
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user