File tree Expand file tree Collapse file tree 4 files changed +6
-24
lines changed Expand file tree Collapse file tree 4 files changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ from ._backend cimport ( # noqa: E211
4848 error_handler_callback,
4949)
5050from ._sycl_device cimport SyclDevice
51- from ._sycl_queue cimport default_async_error_handler
5251from ._sycl_device import SyclDeviceCreationError
5352
5453__all__ = [
@@ -201,8 +200,7 @@ cdef class SyclContext(_SyclContext):
201200 cdef int _init_context_from_one_device(self , SyclDevice device, int props):
202201 cdef DPCTLSyclDeviceRef DRef = device.get_device_ref()
203202 cdef DPCTLSyclContextRef CRef = NULL
204- cdef error_handler_callback * eh_callback = (
205- < error_handler_callback * > & default_async_error_handler)
203+ cdef error_handler_callback * eh_callback = NULL
206204 # look up cached contexts for root devices first
207205 CRef = DPCTLDeviceMgr_GetCachedContext(DRef)
208206 if (CRef is NULL ):
@@ -219,8 +217,7 @@ cdef class SyclContext(_SyclContext):
219217 cdef int j = 0
220218 cdef size_t num_bytes
221219 cdef DPCTLDeviceVectorRef DVRef = NULL
222- cdef error_handler_callback * eh_callback = (
223- < error_handler_callback * > & default_async_error_handler)
220+ cdef error_handler_callback * eh_callback = NULL
224221 cdef DPCTLSyclContextRef CRef = NULL
225222 cdef DPCTLSyclDeviceRef * elems
226223
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ cdef class SyclEvent(_SyclEvent):
218218
219219 @staticmethod
220220 cdef void _wait(SyclEvent event):
221- with nogil: DPCTLEvent_WaitAndThrow (event._event_ref)
221+ with nogil: DPCTLEvent_Wait (event._event_ref)
222222
223223 @staticmethod
224224 def wait_for (event ):
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ from ._sycl_event cimport SyclEvent
2929from .program._program cimport SyclKernel
3030
3131
32- cdef void default_async_error_handler(int ) except * nogil
33-
3432cdef public api class _SyclQueue [
3533 object Py_SyclQueueObject, type Py_SyclQueueType
3634]:
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ from ._backend cimport ( # noqa: E211
5656 _arg_data_type,
5757 _backend_type,
5858 _queue_property_type,
59- error_handler_callback,
6059)
6160from .memory._memory cimport _Memory
6261
@@ -114,18 +113,6 @@ cdef class SyclQueueCreationError(Exception):
114113 pass
115114
116115
117- cdef class SyclAsynchronousError(Exception ):
118- """
119- A SyclAsynchronousError exception is raised when SYCL operation submission
120- or execution encounters an error.
121- """
122-
123-
124- cdef void default_async_error_handler(int err) except * nogil:
125- with gil:
126- raise SyclAsynchronousError(err)
127-
128-
129116cdef int _parse_queue_properties(object prop) except * :
130117 cdef int res = 0
131118 cdef object props
@@ -404,7 +391,7 @@ cdef class SyclQueue(_SyclQueue):
404391 QRef = DPCTLQueue_Create(
405392 CRef,
406393 DRef,
407- < error_handler_callback * > & default_async_error_handler ,
394+ NULL ,
408395 props
409396 )
410397 if QRef is NULL :
@@ -481,7 +468,7 @@ cdef class SyclQueue(_SyclQueue):
481468 QRef = DPCTLQueue_Create(
482469 CRef,
483470 DRef,
484- < error_handler_callback * > & default_async_error_handler ,
471+ NULL ,
485472 props
486473 )
487474 if (QRef is NULL ):
@@ -566,7 +553,7 @@ cdef class SyclQueue(_SyclQueue):
566553 qref = DPCTLQueue_Create(
567554 cref,
568555 dref,
569- < error_handler_callback * > & default_async_error_handler ,
556+ NULL ,
570557 props
571558 )
572559 if qref is NULL :
You can’t perform that action at this time.
0 commit comments