mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 13:54:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
55abd8dc9a
commit
ede8663e41
2
FAQ.md
2
FAQ.md
@@ -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.
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user