|
9 | 9 | // event created is at the end of all kernels submission, when host waits for
|
10 | 10 | // the last kernel's event.
|
11 | 11 | //
|
| 12 | +// clang-format off |
12 | 13 | // MODE1-LABEL: Submitted all kernels
|
13 | 14 | // MODE1: ---> piEventsWait(
|
14 | 15 | // MODE1-NEXT: <unknown> : 1
|
15 |
| -// MODE1: PI ---> EventCreate(Queue->Context, Queue, ForceHostVisible |
| 16 | +// MODE1: ze_event_pool_desc_t flags set to: 1 |
16 | 17 | // MODE1: ZE ---> zeEventCreate(ZeEventPool, &ZeEventDesc, &ZeEvent)
|
17 |
| -// MODE1: ZE ---> zeCommandListAppendWaitOnEvents(CommandList->first, 1, |
18 |
| -// &ZeEvent) MODE1-NEXT: ZE ---> |
19 |
| -// zeCommandListAppendSignalEvent(CommandList->first, HostVisibleEvent->ZeEvent) |
| 18 | +// MODE1: ZE ---> zeCommandListAppendWaitOnEvents(CommandList->first, 1, &ZeEvent) |
| 19 | +// MODE1-NEXT: ZE ---> zeCommandListAppendSignalEvent(CommandList->first, HostVisibleEvent->ZeEvent) |
20 | 20 | // MODE1: Completed all kernels
|
21 | 21 |
|
22 | 22 | // With the SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=2 mode look for pattern that
|
23 | 23 | // creates host-visible event just before command-list submission.
|
24 | 24 | //
|
25 |
| -// MODE2: PI ---> EventCreate(Queue->Context, Queue, ForceHostVisible |
| 25 | +// MODE2: ze_event_pool_desc_t flags set to: 1 |
26 | 26 | // MODE2: ZE ---> zeEventCreate(ZeEventPool, &ZeEventDesc, &ZeEvent)
|
27 |
| -// MODE2: ZE ---> zeCommandListAppendSignalEvent(CommandList->first, |
28 |
| -// HostVisibleEvent->ZeEvent) MODE2: ZE ---> |
29 |
| -// zeCommandListClose(CommandList->first) MODE2: ZE ---> |
30 |
| -// zeCommandQueueExecuteCommandLists(ZeCommandQueue, 1, &ZeCommandList, |
31 |
| -// CommandList->second.ZeFence) |
32 |
| -/// |
| 27 | +// MODE2: ZE ---> zeCommandListAppendSignalEvent(CommandList->first, HostVisibleEvent->ZeEvent) |
| 28 | +// MODE2: ZE ---> zeCommandListClose(CommandList->first) |
| 29 | +// MODE2: ZE ---> zeCommandQueueExecuteCommandLists(ZeCommandQueue, 1, &ZeCommandList, CommandList->second.ZeFence) |
| 30 | +// clang-format on |
| 31 | + |
33 | 32 | #include <iostream>
|
34 | 33 | #include <sycl/sycl.hpp>
|
35 | 34 |
|
|
0 commit comments