mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d62049035a
commit
a0587097e3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user