mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
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:
committed by
Compute-Runtime-Automation
parent
af1620a308
commit
9b52d52062
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user