Skip to content

Commit d9576ca

Browse files
[L0] Rebased against top of main
Signed-off-by: Zhang, Winston <[email protected]>
1 parent 28e7d38 commit d9576ca

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

@@ -662,13 +663,15 @@ urCommandBufferCreateExp(ur_context_handle_t Context, ur_device_handle_t Device,
662663
if (Device->hasMainCopyEngine()) {
663664
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false, false,
664665
&CopyFinishedEvent, UseCounterBasedEvents,
665-
!EnableProfiling));
666+
!EnableProfiling,
667+
false /*InterruptBasedEventEnabled*/));
666668
}
667669

668670
if (EnableProfiling) {
669671
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
670672
false /*HostVisible*/, &ComputeFinishedEvent,
671-
UseCounterBasedEvents, !EnableProfiling));
673+
UseCounterBasedEvents, !EnableProfiling,
674+
false /*InterruptBasedEventEnabled*/));
672675
}
673676
}
674677

@@ -677,7 +680,8 @@ urCommandBufferCreateExp(ur_context_handle_t Context, ur_device_handle_t Device,
677680
if (WaitEventPath) {
678681
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
679682
false /*HostVisible*/, &WaitEvent,
680-
false /*CounterBasedEventEnabled*/, !EnableProfiling));
683+
false /*CounterBasedEventEnabled*/, !EnableProfiling,
684+
false /*InterruptBasedEventEnabled*/));
681685
}
682686

683687
// Create ZeCommandListResetEvents only if counter-based events are not being
@@ -689,15 +693,17 @@ urCommandBufferCreateExp(ur_context_handle_t Context, ur_device_handle_t Device,
689693
if (!UseCounterBasedEvents) {
690694
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
691695
false /*HostVisible*/, &AllResetEvent,
692-
false /*CounterBasedEventEnabled*/, !EnableProfiling));
696+
false /*CounterBasedEventEnabled*/, !EnableProfiling,
697+
false /*InterruptBasedEventEnabled*/));
693698

694699
UR_CALL(createMainCommandList(Context, Device, false, false, false,
695700
ZeCommandListResetEvents));
696701

697702
// The ExecutionFinishedEvent is only waited on by ZeCommandListResetEvents.
698703
UR_CALL(EventCreate(Context, nullptr /*Queue*/, false /*IsMultiDevice*/,
699704
false /*HostVisible*/, &ExecutionFinishedEvent,
700-
false /*CounterBasedEventEnabled*/, !EnableProfiling));
705+
false /*CounterBasedEventEnabled*/, !EnableProfiling,
706+
false /*InterruptBased*/));
701707
}
702708

703709
try {

0 commit comments

Comments
 (0)