mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
performance: limit usm host allocation recycle
Query system total memory size and limit usm host allocation recycle to use at most x%. x is read from ExperimentalEnableDeviceAllocationCache for device and ExperimentalEnableHostAllocationCache for host. Related-To: GSD-7497 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
87990b8cfc
commit
371788210d
@@ -277,6 +277,7 @@ bool Context::createImpl(const cl_context_properties *properties,
|
||||
if (anySvmSupport) {
|
||||
this->svmAllocsManager = new SVMAllocsManager(this->memoryManager,
|
||||
this->areMultiStorageAllocationsPreferred());
|
||||
this->svmAllocsManager->initUsmAllocationsCaches(device->getDevice());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user