mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
452475a0b9
commit
797807bea8
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user