@@ -119,7 +119,7 @@ cpdef utils.dpnp_descriptor dpnp_arange(start, stop, step, dtype):
119119 result.get_data(),
120120 result.size,
121121 NULL ) # dep_events_ref)
122- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
122+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
123123 c_dpctl.DPCTLEvent_Delete(event_ref)
124124
125125 return result
@@ -150,7 +150,7 @@ cpdef utils.dpnp_descriptor dpnp_astype(utils.dpnp_descriptor x1, dtype):
150150 cdef fptr_dpnp_astype_t func = < fptr_dpnp_astype_t > kernel_data.ptr
151151 cdef c_dpctl.DPCTLSyclEventRef event_ref = func(q_ref, x1.get_data(), result.get_data(), x1.size, NULL )
152152
153- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
153+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
154154 c_dpctl.DPCTLEvent_Delete(event_ref)
155155
156156 return result
@@ -197,7 +197,7 @@ cpdef utils.dpnp_descriptor dpnp_flatten(utils.dpnp_descriptor x1):
197197 NULL ,
198198 NULL ) # dep_events_ref
199199
200- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
200+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
201201 c_dpctl.DPCTLEvent_Delete(event_ref)
202202
203203 return result
@@ -230,7 +230,7 @@ cpdef utils.dpnp_descriptor dpnp_init_val(shape, dtype, value):
230230 cdef fptr_dpnp_initval_t func = < fptr_dpnp_initval_t > kernel_data.ptr
231231 cdef c_dpctl.DPCTLSyclEventRef event_ref = func(q_ref, result.get_data(), val_arr.get_data(), result.size, NULL )
232232
233- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
233+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
234234 c_dpctl.DPCTLEvent_Delete(event_ref)
235235
236236 return result
@@ -340,7 +340,7 @@ cdef utils.dpnp_descriptor call_fptr_1out(DPNPFuncName fptr_name,
340340 # Call FPTR function
341341 cdef c_dpctl.DPCTLSyclEventRef event_ref = func(q_ref, result.get_data(), result.size, NULL )
342342
343- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
343+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
344344 c_dpctl.DPCTLEvent_Delete(event_ref)
345345
346346 return result
@@ -388,7 +388,7 @@ cdef utils.dpnp_descriptor call_fptr_1in_1out(DPNPFuncName fptr_name,
388388
389389 cdef c_dpctl.DPCTLSyclEventRef event_ref = func(q_ref, x1.get_data(), result.get_data(), x1.size, NULL )
390390
391- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
391+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
392392 c_dpctl.DPCTLEvent_Delete(event_ref)
393393
394394 return result
@@ -455,7 +455,7 @@ cdef utils.dpnp_descriptor call_fptr_1in_1out_strides(DPNPFuncName fptr_name,
455455 NULL ,
456456 NULL ) # dep_events_ref
457457
458- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
458+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
459459 c_dpctl.DPCTLEvent_Delete(event_ref)
460460
461461 return result
@@ -519,7 +519,7 @@ cdef utils.dpnp_descriptor call_fptr_2in_1out(DPNPFuncName fptr_name,
519519 NULL ,
520520 NULL ) # dep_events_ref)
521521
522- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
522+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
523523 c_dpctl.DPCTLEvent_Delete(event_ref)
524524
525525 return result
@@ -596,7 +596,7 @@ cdef utils.dpnp_descriptor call_fptr_2in_1out_strides(DPNPFuncName fptr_name,
596596 NULL ,
597597 NULL ) # dep_events_ref)
598598
599- with nogil: c_dpctl.DPCTLEvent_Wait (event_ref)
599+ with nogil: c_dpctl.DPCTLEvent_WaitAndThrow (event_ref)
600600 c_dpctl.DPCTLEvent_Delete(event_ref)
601601
602602 return result
0 commit comments