File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ cdef class _SyclEventRaw:
4242cdef public class SyclEventRaw(_SyclEventRaw) [object PySyclEventRawObject, type PySyclEventRawType]:
4343 @staticmethod
4444 cdef SyclEventRaw _create (DPCTLSyclEventRef event)
45- @staticmethod
46- cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef)
4745 cdef int _init_event_default(self )
4846 cdef int _init_event_from__SyclEventRaw(self , _SyclEventRaw other)
4947 cdef int _init_event_from_SyclEvent(self , SyclEvent event)
Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ cdef void _event_capsule_deleter(object o):
9393 )
9494 DPCTLEvent_Delete(ERef)
9595
96+ cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef):
97+ event._event_ref = ERef
9698
9799cdef class _SyclEventRaw:
98100 """ Python wrapper class for a ``cl::sycl::event``.
@@ -106,14 +108,10 @@ cdef class SyclEventRaw(_SyclEventRaw):
106108 """ Python wrapper class for a ``cl::sycl::event``.
107109 """
108110
109- @staticmethod
110- cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef):
111- event._event_ref = ERef
112-
113111 @staticmethod
114112 cdef SyclEventRaw _create(DPCTLSyclEventRef eref):
115113 cdef _SyclEventRaw ret = _SyclEventRaw.__new__ (_SyclEventRaw)
116- SyclEventRaw. _init_helper(ret, eref)
114+ _init_helper(ret, eref)
117115 return SyclEventRaw(ret)
118116
119117 cdef int _init_event_default(self ):
You can’t perform that action at this time.
0 commit comments