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 @@ -100,6 +100,8 @@ cdef void _event_capsule_deleter(object o):
100100 )
101101 DPCTLEvent_Delete(ERef)
102102
103+ cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef):
104+ event._event_ref = ERef
103105
104106cdef class _SyclEventRaw:
105107 """ Python wrapper class for a ``cl::sycl::event``.
@@ -113,14 +115,10 @@ cdef class SyclEventRaw(_SyclEventRaw):
113115 """ Python wrapper class for a ``cl::sycl::event``.
114116 """
115117
116- @staticmethod
117- cdef void _init_helper(_SyclEventRaw event, DPCTLSyclEventRef ERef):
118- event._event_ref = ERef
119-
120118 @staticmethod
121119 cdef SyclEventRaw _create(DPCTLSyclEventRef eref):
122120 cdef _SyclEventRaw ret = _SyclEventRaw.__new__ (_SyclEventRaw)
123- SyclEventRaw. _init_helper(ret, eref)
121+ _init_helper(ret, eref)
124122 return SyclEventRaw(ret)
125123
126124 cdef int _init_event_default(self ):
You can’t perform that action at this time.
0 commit comments