mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
fix: correct debug break if, usm reuse
Should break if memory manager is nullptr Related-To: NEO-6893 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
62f2a86f16
commit
bd9b458add
@@ -201,7 +201,7 @@ void SVMAllocsManager::SvmAllocationCache::trim() {
|
||||
}
|
||||
|
||||
void SVMAllocsManager::SvmAllocationCache::cleanup() {
|
||||
DEBUG_BREAK_IF(this->memoryManager);
|
||||
DEBUG_BREAK_IF(nullptr == this->memoryManager);
|
||||
if (auto usmReuseCleaner = this->memoryManager->peekExecutionEnvironment().unifiedMemoryReuseCleaner.get()) {
|
||||
usmReuseCleaner->unregisterSvmAllocationCache(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user