fix: blocking usm reuse cleanup

Use blocking free policy when cleaning up usm reuse

Also clean usm reuse first when destroying platform,
since there is no point in reusing on closing application.

Related-To: HSD-18043613805, HSD-13013909538

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2025-10-09 15:56:46 +00:00
committed by Compute-Runtime-Automation
parent 2eb8928ec5
commit 00ec4c82b2
4 changed files with 38 additions and 3 deletions

View File

@@ -217,7 +217,7 @@ void SVMAllocsManager::SvmAllocationCache::trim() {
.operationType = CacheOperationType::trim,
.isSuccess = true});
}
svmAllocsManager->freeSVMAllocImpl(cachedAllocationInfo.allocation, FreePolicyType::none, cachedAllocationInfo.svmData);
svmAllocsManager->freeSVMAllocImpl(cachedAllocationInfo.allocation, FreePolicyType::blocking, cachedAllocationInfo.svmData);
}
this->allocations.clear();
empty = true;