Add unrecoverable for returned pointer.

Change-Id: I3d9f923e8a9b6fbdba752ecec8dfff525e0cabd2
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal 2019-07-12 14:31:03 +02:00 committed by sys_ocldev
parent ee4d1e1836
commit f7e04a897b
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ void *SVMAllocsManager::createUnifiedMemoryAllocation(size_t size, const Unified
if (DebugManager.flags.AllocateSharedAllocationsWithCpuAndGpuStorage.get()) { if (DebugManager.flags.AllocateSharedAllocationsWithCpuAndGpuStorage.get()) {
if (memoryProperties.memoryType == InternalMemoryType::SHARED_UNIFIED_MEMORY) { if (memoryProperties.memoryType == InternalMemoryType::SHARED_UNIFIED_MEMORY) {
auto unifiedMemoryPointer = createUnifiedAllocationWithDeviceStorage(size, {}); auto unifiedMemoryPointer = createUnifiedAllocationWithDeviceStorage(size, {});
UNRECOVERABLE_IF(unifiedMemoryPointer == nullptr);
auto unifiedMemoryAllocation = this->getSVMAlloc(unifiedMemoryPointer); auto unifiedMemoryAllocation = this->getSVMAlloc(unifiedMemoryPointer);
unifiedMemoryAllocation->memoryType = memoryProperties.memoryType; unifiedMemoryAllocation->memoryType = memoryProperties.memoryType;
return unifiedMemoryPointer; return unifiedMemoryPointer;