@@ -422,7 +422,8 @@ ur_result_t urEnqueueEventsWaitWithBarrier(
422422ur_result_t urEnqueueEventsWaitWithBarrierExt (
423423 ur_queue_handle_t Queue, // /< [in] handle of the queue object
424424 const ur_exp_enqueue_ext_properties_t
425- *, // /< [in][optional] pointer to the extended enqueue properties
425+ *EnqueueExtProp, // /< [in][optional] pointer to the extended enqueue
426+ // /< properties
426427 uint32_t NumEventsInWaitList, // /< [in] size of the event wait list
427428 const ur_event_handle_t
428429 *EventWaitList, // /< [in][optional][range(0, numEventsInWaitList)]
@@ -913,7 +914,7 @@ ur_result_t urExtEventCreate(
913914 UR_CALL (EventCreate (Context, nullptr /* Queue*/ , false /* IsMultiDevice*/ ,
914915 true /* HostVisible*/ , Event,
915916 false /* CounterBasedEventEnabled*/ ,
916- false /* ForceDisableProfiling*/ ));
917+ false /* ForceDisableProfiling*/ , false ));
917918
918919 (*Event)->RefCountExternal ++;
919920 if (!(*Event)->CounterBasedEventsEnabled )
@@ -935,7 +936,7 @@ ur_result_t urEventCreateWithNativeHandle(
935936 UR_CALL (EventCreate (Context, nullptr /* Queue*/ , false /* IsMultiDevice*/ ,
936937 true /* HostVisible*/ , Event,
937938 false /* CounterBasedEventEnabled*/ ,
938- false /* ForceDisableProfiling*/ ));
939+ false /* ForceDisableProfiling*/ , false ));
939940
940941 (*Event)->RefCountExternal ++;
941942 if (!(*Event)->CounterBasedEventsEnabled )
@@ -1293,7 +1294,8 @@ ur_result_t EventCreate(ur_context_handle_t Context, ur_queue_handle_t Queue,
12931294 bool IsMultiDevice, bool HostVisible,
12941295 ur_event_handle_t *RetEvent,
12951296 bool CounterBasedEventEnabled,
1296- bool ForceDisableProfiling) {
1297+ bool ForceDisableProfiling,
1298+ bool InterruptBasedEventEnabled) {
12971299 bool ProfilingEnabled =
12981300 ForceDisableProfiling ? false : (!Queue || Queue->isProfilingEnabled ());
12991301 bool UsingImmediateCommandlists = !Queue || Queue->UsingImmCmdLists ;
@@ -1317,14 +1319,15 @@ ur_result_t EventCreate(ur_context_handle_t Context, ur_queue_handle_t Queue,
13171319
13181320 if (auto Res = Context->getFreeSlotInExistingOrNewPool (
13191321 ZeEventPool, Index, HostVisible, ProfilingEnabled, Device,
1320- CounterBasedEventEnabled, UsingImmediateCommandlists))
1322+ CounterBasedEventEnabled, UsingImmediateCommandlists,
1323+ Queue->interruptBasedEventsEnabled ()))
13211324 return Res;
13221325
13231326 ZeStruct<ze_event_desc_t > ZeEventDesc;
13241327 ZeEventDesc.index = Index;
13251328 ZeEventDesc.wait = 0 ;
13261329
1327- if (HostVisible || CounterBasedEventEnabled) {
1330+ if (HostVisible || CounterBasedEventEnabled || InterruptBasedEventEnabled ) {
13281331 ZeEventDesc.signal = ZE_EVENT_SCOPE_FLAG_HOST;
13291332 } else {
13301333 //
@@ -1350,6 +1353,7 @@ ur_result_t EventCreate(ur_context_handle_t Context, ur_queue_handle_t Queue,
13501353 return UR_RESULT_ERROR_UNKNOWN;
13511354 }
13521355 (*RetEvent)->CounterBasedEventsEnabled = CounterBasedEventEnabled;
1356+ (*RetEvent)->InterruptBasedEventsEnabled = InterruptBasedEventEnabled;
13531357 if (HostVisible)
13541358 (*RetEvent)->HostVisibleEvent =
13551359 reinterpret_cast <ur_event_handle_t >(*RetEvent);
0 commit comments