Disable cross-device indirect access

Change-Id: I57655abfc02785dfd68384a1546ee4cfdbea938a
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2020-06-14 13:18:42 -07:00
committed by sys_ocldev
parent 351af1d3de
commit 8113fafe53
10 changed files with 225 additions and 14 deletions

View File

@@ -65,8 +65,13 @@ ze_result_t CommandListCoreFamily<gfxCoreFamily>::appendLaunchKernelWithParams(z
}
NEO::EncodeDispatchKernel<GfxFamily>::encode(commandContainer,
reinterpret_cast<const void *>(pThreadGroupDimensions), isIndirect, isPredicate, kernel,
0, device->getNEODevice(), commandListPreemptionMode);
reinterpret_cast<const void *>(pThreadGroupDimensions),
isIndirect,
isPredicate,
kernel,
0,
device->getNEODevice(),
commandListPreemptionMode);
appendSignalEventPostWalker(hEvent);

View File

@@ -121,7 +121,8 @@ ze_result_t CommandQueueHw<gfxCoreFamily>::executeCommandLists(
UnifiedMemoryControls unifiedMemoryControls = commandList->getUnifiedMemoryControls();
auto svmAllocsManager = device->getDriverHandle()->getSvmAllocsManager();
svmAllocsManager->addInternalAllocationsToResidencyContainer(commandList->commandContainer.getResidencyContainer(),
svmAllocsManager->addInternalAllocationsToResidencyContainer(neoDevice->getRootDeviceIndex(),
commandList->commandContainer.getResidencyContainer(),
unifiedMemoryControls.generateMask());
}