mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
fix: correct maxMemAllocSize
Resolves: NEO-11857 Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6e1b882e04
commit
41e24635e3
@@ -353,24 +353,12 @@ TEST_F(DeviceGetCapsTest,
|
||||
pDevice->deviceBitfield = 15;
|
||||
|
||||
debugManager.flags.EnableWalkerPartition.set(1);
|
||||
debugManager.flags.EnableSharedSystemUsmSupport.set(1);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize == pDevice->getDeviceInfo().globalMemSize);
|
||||
EXPECT_EQ(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);
|
||||
EXPECT_LE(pDevice->getDeviceInfo().maxMemAllocSize, pDevice->getDeviceInfo().globalMemSize);
|
||||
}
|
||||
|
||||
TEST_F(DeviceGetCapsTest,
|
||||
@@ -382,9 +370,8 @@ TEST_F(DeviceGetCapsTest,
|
||||
|
||||
debugManager.flags.EnableImplicitScaling.set(1);
|
||||
debugManager.flags.EnableWalkerPartition.set(1);
|
||||
debugManager.flags.EnableSharedSystemUsmSupport.set(1);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize == pDevice->getDeviceInfo().globalMemSize);
|
||||
EXPECT_EQ(pDevice->getDeviceInfo().maxMemAllocSize, pDevice->getDeviceInfo().globalMemSize);
|
||||
}
|
||||
|
||||
TEST_F(DeviceGetCapsTest,
|
||||
@@ -396,9 +383,8 @@ TEST_F(DeviceGetCapsTest,
|
||||
|
||||
debugManager.flags.EnableImplicitScaling.set(0);
|
||||
debugManager.flags.EnableWalkerPartition.set(1);
|
||||
debugManager.flags.EnableSharedSystemUsmSupport.set(1);
|
||||
pDevice->initializeCaps();
|
||||
EXPECT_TRUE(pDevice->getDeviceInfo().maxMemAllocSize <= pDevice->getDeviceInfo().globalMemSize);
|
||||
EXPECT_LE(pDevice->getDeviceInfo().maxMemAllocSize, pDevice->getDeviceInfo().globalMemSize);
|
||||
}
|
||||
|
||||
TEST_F(DeviceGetCapsTest, givenDontForcePreemptionModeDebugVariableWhenCreateDeviceThenSetDefaultHwPreemptionMode) {
|
||||
|
||||
Reference in New Issue
Block a user