Skip to content

Commit 2690fb4

Browse files
[L0] Rebased against top of main
Signed-off-by: Zhang, Winston <winston.zhang@intel.com>
1 parent f8a842c commit 2690fb4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

source/adapters/level_zero/command_buffer.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ ur_result_t createSyncPointAndGetZeEvents(
215215
UR_CALL(EventCreate(CommandBuffer->Context, nullptr /*Queue*/,
216216
false /*IsMultiDevice*/, HostVisible, &LaunchEvent,
217217
false /*CounterBasedEventEnabled*/,
218-
!CommandBuffer->IsProfilingEnabled, false));
218+
!CommandBuffer->IsProfilingEnabled,
219+
false /*InterruptBasedEventEnabled*/));
219220
LaunchEvent->CommandType = CommandType;
220221
ZeLaunchEvent = LaunchEvent->ZeEvent;
221222

@@ -680,13 +681,15 @@ urCommandBufferCreateExp(ur_context_handle_t Context, ur_device_handle_t Device,
680681
if (Device->hasMainCopyEngine()) {
681682
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false, false,
682683
&CopyFinishedEvent, UseCounterBasedEvents,
683-
!EnableProfiling));
684+
!EnableProfiling,
685+
false /*InterruptBasedEventEnabled*/));
684686
}
685687

686688
if (EnableProfiling) {
687689
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
688690
false /*HostVisible*/, &ComputeFinishedEvent,
689-
UseCounterBasedEvents, !EnableProfiling));
691+
UseCounterBasedEvents, !EnableProfiling,
692+
false /*InterruptBasedEventEnabled*/));
690693
}
691694
}
692695

@@ -695,7 +698,8 @@ urCommandBufferCreateExp(ur_context_handle_t Context, ur_device_handle_t Device,
695698
if (WaitEventPath) {
696699
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
697700
false /*HostVisible*/, &WaitEvent,
698-
false /*CounterBasedEventEnabled*/, !EnableProfiling));
701+
false /*CounterBasedEventEnabled*/, !EnableProfiling,
702+
false /*InterruptBasedEventEnabled*/));
699703
}
700704

701705
// Create ZeCommandListResetEvents only if counter-based events are not being
@@ -707,15 +711,17 @@ urCommandBufferCreateExp(ur_context_handle_t Context, ur_device_handle_t Device,
707711
if (!UseCounterBasedEvents) {
708712
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
709713
false /*HostVisible*/, &AllResetEvent,
710-
false /*CounterBasedEventEnabled*/, !EnableProfiling));
714+
false /*CounterBasedEventEnabled*/, !EnableProfiling,
715+
false /*InterruptBasedEventEnabled*/));
711716

712717
UR_CALL(createMainCommandList(Context, Device, false, false, false,
713718
ZeCommandListResetEvents));
714719

715720
// The ExecutionFinishedEvent is only waited on by ZeCommandListResetEvents.
716721
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
717722
false /*HostVisible*/, &ExecutionFinishedEvent,
718-
false /*CounterBasedEventEnabled*/, !EnableProfiling));
723+
false /*CounterBasedEventEnabled*/, !EnableProfiling,
724+
false /*InterruptBased*/));
719725
}
720726

721727
try {

0 commit comments

Comments
 (0)