fix: iGPUs - increase size of reported global memory available on Windows to 94%

Related-To: NEO-8989, NEO-7229
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwolinski
2023-10-20 09:58:34 +00:00
committed by Compute-Runtime-Automation
parent 55abd8dc9a
commit ede8663e41
3 changed files with 3 additions and 3 deletions

2
FAQ.md
View File

@@ -85,7 +85,7 @@ Actual available memory should be read from the driver capabilities using the de
* discrete on Linux - 95% of device memory
* integrated on Linux - 80% of system memory
* discrete on Windows - 98% of device memory
* integrated on Windows - 80% of system memory
* integrated on Windows - 94% of system memory - 450 MB for internal resources
Ignoring these instructions may lead to undefined behavior, including abort.

View File

@@ -889,7 +889,7 @@ double WddmMemoryManager::getPercentOfGlobalMemoryAvailable(uint32_t rootDeviceI
if (isLocalMemorySupported(rootDeviceIndex)) {
return 0.98;
}
return 0.8;
return 0.94;
}
AlignedMallocRestrictions *WddmMemoryManager::getAlignedMallocRestrictions() {

View File

@@ -163,7 +163,7 @@ TEST_F(WddmMemoryManagerTests, GivenCompressedAndNotLockableAllocationTypeWhenAl
TEST_F(WddmMemoryManagerTests, givenWddmMemoryManagerWithoutLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {
MockWddmMemoryManager memoryManager(true, false, *executionEnvironment);
uint32_t rootDeviceIndex = 0u;
EXPECT_EQ(0.8, memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex));
EXPECT_EQ(0.94, memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex));
}
TEST_F(WddmMemoryManagerTests, givenWddmMemoryManagerWithLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {