Skip to content

Commit f7e04a8

Browse files
Add unrecoverable for returned pointer.
Change-Id: I3d9f923e8a9b6fbdba752ecec8dfff525e0cabd2 Signed-off-by: Mrozek, Michal <[email protected]>
1 parent ee4d1e1 commit f7e04a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/memory_manager/unified_memory_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ void *SVMAllocsManager::createUnifiedMemoryAllocation(size_t size, const Unified
9696
if (DebugManager.flags.AllocateSharedAllocationsWithCpuAndGpuStorage.get()) {
9797
if (memoryProperties.memoryType == InternalMemoryType::SHARED_UNIFIED_MEMORY) {
9898
auto unifiedMemoryPointer = createUnifiedAllocationWithDeviceStorage(size, {});
99+
UNRECOVERABLE_IF(unifiedMemoryPointer == nullptr);
99100
auto unifiedMemoryAllocation = this->getSVMAlloc(unifiedMemoryPointer);
100101
unifiedMemoryAllocation->memoryType = memoryProperties.memoryType;
101102
return unifiedMemoryPointer;

0 commit comments

Comments
 (0)