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:
Dominik Dabek
2024-02-05 15:53:23 +00:00
committed by Compute-Runtime-Automation
parent 87990b8cfc
commit 371788210d
6 changed files with 254 additions and 31 deletions

View File

@@ -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());
}
}