Add extra synchronization to L0 when kernel timestamps are used

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2021-06-22 04:05:02 +00:00
committed by Compute-Runtime-Automation
parent d62049035a
commit a0587097e3

View File

@@ -1702,8 +1702,15 @@ void CommandListCoreFamily<gfxCoreFamily>::appendEventForProfiling(ze_event_hand
NEO::PipeControlArgs args = {};
args.dcFlushEnable = (!event->signalScope) ? false : true;
NEO::MemorySynchronizationCommands<GfxFamily>::setPostSyncExtraProperties(args,
commandContainer.getDevice()->getHardwareInfo());
NEO::MemorySynchronizationCommands<GfxFamily>::addPipeControl(*commandContainer.getCommandStream(), args);
uint64_t baseAddr = event->getGpuAddress(this->device);
NEO::MemorySynchronizationCommands<GfxFamily>::addAdditionalSynchronization(*commandContainer.getCommandStream(),
baseAddr,
commandContainer.getDevice()->getHardwareInfo());
appendWriteKernelTimestamp(hEvent, beforeWalker, true);
}
}