fix: usm reuse cleaning unused allocations

mechanism for freeing allocations saved for reuse that have not been
used in a given time

Related-To: NEO-13425

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2025-01-21 11:30:02 +00:00
committed by Compute-Runtime-Automation
parent b2f8da5109
commit 3f646839ca
15 changed files with 407 additions and 38 deletions

View File

@@ -191,7 +191,7 @@ DriverHandleImp::~DriverHandleImp() {
if (memoryManager != nullptr) {
memoryManager->peekExecutionEnvironment().prepareForCleanup();
if (this->svmAllocsManager) {
this->svmAllocsManager->trimUSMDeviceAllocCache();
this->svmAllocsManager->cleanupUSMAllocCaches();
this->usmHostMemAllocPool.cleanup();
}
}
@@ -219,7 +219,6 @@ DriverHandleImp::~DriverHandleImp() {
this->fabricIndirectEdges.clear();
if (this->svmAllocsManager) {
this->svmAllocsManager->trimUSMDeviceAllocCache();
delete this->svmAllocsManager;
this->svmAllocsManager = nullptr;
}