mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
b2f8da5109
commit
3f646839ca
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user