mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: Increase size of reported global memory available to 98%
This change applies to Linux. Resolves: NEO-7229 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
87aab0bf6e
commit
e8ac22c265
@@ -1184,7 +1184,7 @@ uint64_t DrmMemoryManager::getSystemSharedMemory(uint32_t rootDeviceIndex) {
|
||||
|
||||
double DrmMemoryManager::getPercentOfGlobalMemoryAvailable(uint32_t rootDeviceIndex) {
|
||||
if (isLocalMemorySupported(rootDeviceIndex)) {
|
||||
return 0.95;
|
||||
return 0.98;
|
||||
}
|
||||
return 0.8;
|
||||
}
|
||||
|
||||
@@ -4504,7 +4504,7 @@ TEST_F(DrmMemoryManagerTest, givenCustomAlignmentWhenWddmMemoryManagerIsCreatedT
|
||||
TEST_F(DrmMemoryManagerTest, givenDrmManagerWithLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {
|
||||
TestedDrmMemoryManager memoryManager(true, false, false, *executionEnvironment);
|
||||
uint32_t rootDeviceIndex = 0u;
|
||||
EXPECT_EQ(memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex), 0.95);
|
||||
EXPECT_EQ(memoryManager.getPercentOfGlobalMemoryAvailable(rootDeviceIndex), 0.98);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, givenDrmManagerWithoutLocalMemoryWhenGettingGlobalMemoryPercentThenCorrectValueIsReturned) {
|
||||
|
||||
Reference in New Issue
Block a user