mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-17 21:14:51 +08:00
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:
committed by
Compute-Runtime-Automation
parent
ede8663e41
commit
b8831e87b0
2
FAQ.md
2
FAQ.md
@@ -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
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user