Revert "feature: add pooling of USM global/constant surface"

This reverts commit 68698c9a74.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-09-14 15:53:44 +02:00
committed by Compute-Runtime-Automation
parent 28e3bcfea2
commit e2d12e1742
15 changed files with 38 additions and 601 deletions

View File

@@ -77,13 +77,6 @@ Device::~Device() {
if (deviceUsmMemAllocPoolsManager) {
deviceUsmMemAllocPoolsManager->cleanup();
}
if (usmConstantSurfaceAllocPool) {
usmConstantSurfaceAllocPool->cleanup();
}
if (usmGlobalSurfaceAllocPool) {
usmGlobalSurfaceAllocPool->cleanup();
}
secondaryCsrs.clear();
executionEnvironment->memoryManager->releaseSecondaryOsContexts(this->getRootDeviceIndex());
commandStreamReceivers.clear();
@@ -229,10 +222,6 @@ bool Device::initializeCommonResources() {
deviceBitfields.emplace(getRootDeviceIndex(), getDeviceBitfield());
deviceUsmMemAllocPoolsManager.reset(new UsmMemAllocPoolsManager(getMemoryManager(), rootDeviceIndices, deviceBitfields, this, InternalMemoryType::deviceUnifiedMemory));
}
this->resetUsmConstantSurfaceAllocPool(new UsmMemAllocPool);
this->resetUsmGlobalSurfaceAllocPool(new UsmMemAllocPool);
return true;
}
@@ -278,14 +267,6 @@ void Device::cleanupUsmAllocationPool() {
}
}
void Device::resetUsmConstantSurfaceAllocPool(UsmMemAllocPool *usmMemAllocPool) {
this->usmConstantSurfaceAllocPool.reset(usmMemAllocPool);
}
void Device::resetUsmGlobalSurfaceAllocPool(UsmMemAllocPool *usmMemAllocPool) {
this->usmGlobalSurfaceAllocPool.reset(usmMemAllocPool);
}
bool Device::initDeviceFully() {
if (!getRootDeviceEnvironment().isExposeSingleDeviceMode()) {