mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Update maxMemAlloc for PVC with Implicit Scaling
Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
90963b95ad
commit
28345061f0
@@ -102,6 +102,34 @@ TEST_F(DeviceGetCapsTest, givenMockCompilerInterfaceWhenInitializeCapsIsCalledTh
|
||||
EXPECT_EQ(1u, pDevice->getDeviceInfo().maxParameterSize);
|
||||
}
|
||||
|
||||
TEST_F(DeviceGetCapsTest,
|
||||
givenImplicitScalingWhenInitializeCapsIsCalledThenMaxMemAllocSizeIsSetCorrectly) {
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
|
||||
DebugManager.flags.CreateMultipleSubDevices.set(4);
|
||||
pDevice->deviceBitfield = 15;
|
||||
|
||||
DebugManager.flags.EnableWalkerPartition.set(1);
|
||||
DebugManager.flags.EnableSharedSystemUsmSupport.set(1);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize == pDevice->getDeviceInfo().globalMemSize);
|
||||
|
||||
DebugManager.flags.EnableWalkerPartition.set(0);
|
||||
DebugManager.flags.EnableSharedSystemUsmSupport.set(1);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize <= pDevice->getDeviceInfo().globalMemSize);
|
||||
|
||||
DebugManager.flags.EnableWalkerPartition.set(1);
|
||||
DebugManager.flags.EnableSharedSystemUsmSupport.set(0);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize < pDevice->getDeviceInfo().globalMemSize);
|
||||
|
||||
DebugManager.flags.EnableWalkerPartition.set(0);
|
||||
DebugManager.flags.EnableSharedSystemUsmSupport.set(0);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize < pDevice->getDeviceInfo().globalMemSize);
|
||||
}
|
||||
|
||||
TEST_F(DeviceGetCapsTest, givenDontForcePreemptionModeDebugVariableWhenCreateDeviceThenSetDefaultHwPreemptionMode) {
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user