fix: reduce USM pool size for platforms prior Xe2

Related-To: NEO-16192

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-09-23 13:14:01 +00:00
committed by Compute-Runtime-Automation
parent 452475a0b9
commit 797807bea8
15 changed files with 50 additions and 19 deletions

View File

@@ -523,7 +523,7 @@ void Context::initializeDeviceUsmAllocationPool() {
productHelper.isDeviceUsmPoolAllocatorSupported() &&
DeviceFactory::isHwModeSelected();
auto usmDevicePoolParams = UsmPoolParams::getUsmPoolParams();
auto usmDevicePoolParams = UsmPoolParams::getUsmPoolParams(getDevices()[0]->getGfxCoreHelper());
if (debugManager.flags.EnableDeviceUsmAllocationPool.get() != -1) {
enabled = debugManager.flags.EnableDeviceUsmAllocationPool.get() > 0;
usmDevicePoolParams.poolSize = debugManager.flags.EnableDeviceUsmAllocationPool.get() * MemoryConstants::megaByte;

View File

@@ -325,7 +325,7 @@ void Platform::initializeHostUsmAllocationPool() {
usmHostAllocPoolingEnabled &= device->getProductHelper().isHostUsmPoolAllocatorSupported() && DeviceFactory::isHwModeSelected();
}
auto usmHostPoolParams = UsmPoolParams::getUsmPoolParams();
auto usmHostPoolParams = UsmPoolParams::getUsmPoolParams(this->clDevices[0]->getGfxCoreHelper());
if (debugManager.flags.EnableHostUsmAllocationPool.get() != -1) {
usmHostAllocPoolingEnabled = debugManager.flags.EnableHostUsmAllocationPool.get() > 0;
usmHostPoolParams.poolSize = debugManager.flags.EnableHostUsmAllocationPool.get() * MemoryConstants::megaByte;