Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 483fb75

Browse files
authored
[SYCL] Make checks more robust in the level_zero_device_scope_events.cpp (#1179)
1 parent 53b6f5b commit 483fb75

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

SYCL/Plugin/level_zero_device_scope_events.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,26 @@
99
// event created is at the end of all kernels submission, when host waits for
1010
// the last kernel's event.
1111
//
12+
// clang-format off
1213
// MODE1-LABEL: Submitted all kernels
1314
// MODE1: ---> piEventsWait(
1415
// MODE1-NEXT: <unknown> : 1
15-
// MODE1: PI ---> EventCreate(Queue->Context, Queue, ForceHostVisible
16+
// MODE1: ze_event_pool_desc_t flags set to: 1
1617
// 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)
2020
// MODE1: Completed all kernels
2121

2222
// With the SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=2 mode look for pattern that
2323
// creates host-visible event just before command-list submission.
2424
//
25-
// MODE2: PI ---> EventCreate(Queue->Context, Queue, ForceHostVisible
25+
// MODE2: ze_event_pool_desc_t flags set to: 1
2626
// 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+
3332
#include <iostream>
3433
#include <sycl/sycl.hpp>
3534

0 commit comments

Comments
 (0)