fix: iGPUs - increase size of reported global memory available on Linux 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 10:10:40 +00:00
committed by Compute-Runtime-Automation
parent ede8663e41
commit b8831e87b0
3 changed files with 3 additions and 3 deletions

2
FAQ.md
View File

@@ -83,7 +83,7 @@ There is no plan to provide the following features or support in the NEO driver
Actual available memory should be read from the driver capabilities using the dedicated API. The driver will report available memory depending on the type of graphics device
(discrete vs. integrated) and operating system as follows:
* discrete on Linux - 95% of device memory
* integrated on Linux - 80% of system memory
* integrated on Linux - 94% of system memory - 450 MB for internal resources
* discrete on Windows - 98% of device memory
* integrated on Windows - 94% of system memory - 450 MB for internal resources

View File

@@ -1202,7 +1202,7 @@ double DrmMemoryManager::getPercentOfGlobalMemoryAvailable(uint32_t rootDeviceIn
if (isLocalMemorySupported(rootDeviceIndex)) {
return 0.95;
}
return 0.8;
return 0.94;
}
AllocationStatus DrmMemoryManager::populateOsHandles(OsHandleStorage &handleStorage, uint32_t rootDeviceIndex) {

View File

@@ -4732,7 +4732,7 @@ TEST_F(DrmMemoryManagerTest, givenDrmManagerWithLocalMemoryWhenGettingGlobalMemo
TEST_F(DrmMemoryManagerTest, givenDrmManagerWithoutLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {
TestedDrmMemoryManager memoryManager(false, false, false, *executionEnvironment);
uint32_t rootDeviceIndex = 0u;
EXPECT_EQ(memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex), 0.8);
EXPECT_EQ(memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex), 0.94);
}
struct DrmMemoryManagerToTestLockInLocalMemory : public TestedDrmMemoryManager {