mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add UNRECOVERABLE_IF to getPeerAllocation()
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
c5546a5cfb
commit
5259428647
@ -459,9 +459,11 @@ NEO::GraphicsAllocation *DriverHandleImp::getPeerAllocation(Device *device,
|
||||
if (iter != deviceImp->peerAllocations.allocations.end()) {
|
||||
peerAllocData = &iter->second;
|
||||
alloc = peerAllocData->gpuAllocations.getDefaultGraphicsAllocation();
|
||||
UNRECOVERABLE_IF(alloc == nullptr);
|
||||
peerPtr = reinterpret_cast<void *>(alloc->getGpuAddress());
|
||||
} else {
|
||||
alloc = allocData->gpuAllocations.getDefaultGraphicsAllocation();
|
||||
UNRECOVERABLE_IF(alloc == nullptr);
|
||||
uint64_t handle = alloc->peekInternalHandle(this->getMemoryManager());
|
||||
ze_ipc_memory_flags_t flags = {};
|
||||
peerPtr = this->importFdHandle(device, flags, handle, &alloc);
|
||||
|
Reference in New Issue
Block a user