mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 18:37:46 +08:00
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:
committed by
Compute-Runtime-Automation
parent
2eb8928ec5
commit
00ec4c82b2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user