Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL] Reuse discarded L0 events in scope of command list (#7256)
Patch implements reset and reuse of Level Zero events in scope of cmd list. Same level zero events are reused inside different command lists in scope of the queue, we need new event only to switch between command lists. The scheme in scope of command list looks like this: Operation1 = zeCommantListAppendMemoryCopy (signal event1) zeCommandListAppendBarrier(wait for event1) zeCommandListAppendEventReset(event1) Operation2 = zeCommandListAppendMemoryCopy (signal event2) zeCommandListAppendBarrier(wait for event2) zeCommandListAppendEventReset(event2) Operation3 = zeCommandListAppendMemoryCopy (signal event1) If we switch to a different command list then we signal new event and insert a barrier into new command list waiting on that event. CmdList1: Operation1 = zeCommantListAppendMemoryCopy (signal event1) zeCommandListAppendBarrier(wait for event1) zeCommandListAppendEventReset(event1) zeCommandListAppendSignalEvent(NewEvent) CmdList2: zeCommandListAppendBarrier(wait for NewEvent)
- Loading branch information