performance(ocl): enable usm pool allocator

Enable on xe hpg and lpg platforms

Related-To: NEO-9700

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-01-05 14:00:04 +00:00
committed by Compute-Runtime-Automation
parent af1620a308
commit 9b52d52062
11 changed files with 57 additions and 27 deletions

View File

@@ -494,8 +494,8 @@ void Context::initializeUsmAllocationPools() {
if (!(svmMemoryManager && this->isSingleDeviceContext())) {
return;
}
bool enabled = false;
auto &productHelper = getDevices()[0]->getProductHelper();
bool enabled = productHelper.isUsmPoolAllocatorSupported();
size_t poolSize = 2 * MemoryConstants::megaByte;
if (debugManager.flags.EnableDeviceUsmAllocationPool.get() != -1) {
enabled = debugManager.flags.EnableDeviceUsmAllocationPool.get() > 0;
@@ -511,7 +511,7 @@ void Context::initializeUsmAllocationPools() {
usmDeviceMemAllocPool.initialize(svmMemoryManager, memoryProperties, poolSize);
}
enabled = false;
enabled = productHelper.isUsmPoolAllocatorSupported();
poolSize = 2 * MemoryConstants::megaByte;
if (debugManager.flags.EnableHostUsmAllocationPool.get() != -1) {
enabled = debugManager.flags.EnableHostUsmAllocationPool.get() > 0;