mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
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:
committed by
Compute-Runtime-Automation
parent
28e3bcfea2
commit
e2d12e1742
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user