@@ -49,8 +49,8 @@ template <> struct type_caster<sycl::queue>
4949 {
5050 PyObject * source = src .ptr ();
5151 if (PyObject_TypeCheck (source , & PySyclQueueType )) {
52- DPCTLSyclQueueRef QRef =
53- get_queue_ref ( reinterpret_cast < PySyclQueueObject * > (source ));
52+ DPCTLSyclQueueRef QRef = SyclQueue_GetQueueRef (
53+ reinterpret_cast < PySyclQueueObject * > (source ));
5454 sycl ::queue * q = reinterpret_cast < sycl ::queue * > (QRef );
5555 value = * q ;
5656 return true;
@@ -63,7 +63,7 @@ template <> struct type_caster<sycl::queue>
6363
6464 static handle cast (sycl ::queue src , return_value_policy , handle )
6565 {
66- auto tmp = make_SyclQueue (reinterpret_cast < DPCTLSyclQueueRef > (& src ));
66+ auto tmp = SyclQueue_Make (reinterpret_cast < DPCTLSyclQueueRef > (& src ));
6767 return handle (reinterpret_cast < PyObject * > (tmp ));
6868 }
6969};
@@ -87,8 +87,8 @@ template <> struct type_caster<sycl::device>
8787 {
8888 PyObject * source = src .ptr ();
8989 if (PyObject_TypeCheck (source , & PySyclDeviceType )) {
90- DPCTLSyclDeviceRef DRef =
91- get_device_ref ( reinterpret_cast < PySyclDeviceObject * > (source ));
90+ DPCTLSyclDeviceRef DRef = SyclDevice_GetDeviceRef (
91+ reinterpret_cast < PySyclDeviceObject * > (source ));
9292 sycl ::device * d = reinterpret_cast < sycl ::device * > (DRef );
9393 value = * d ;
9494 return true;
@@ -101,7 +101,7 @@ template <> struct type_caster<sycl::device>
101101
102102 static handle cast (sycl ::device src , return_value_policy , handle )
103103 {
104- auto tmp = make_SyclDevice (reinterpret_cast < DPCTLSyclDeviceRef > (& src ));
104+ auto tmp = SyclDevice_Make (reinterpret_cast < DPCTLSyclDeviceRef > (& src ));
105105 return handle (reinterpret_cast < PyObject * > (tmp ));
106106 }
107107};
@@ -125,7 +125,7 @@ template <> struct type_caster<sycl::context>
125125 {
126126 PyObject * source = src .ptr ();
127127 if (PyObject_TypeCheck (source , & PySyclContextType )) {
128- DPCTLSyclContextRef CRef = get_context_ref (
128+ DPCTLSyclContextRef CRef = SyclContext_GetContextRef (
129129 reinterpret_cast < PySyclContextObject * > (source ));
130130 sycl ::context * ctx = reinterpret_cast < sycl ::context * > (CRef );
131131 value = * ctx ;
@@ -140,7 +140,7 @@ template <> struct type_caster<sycl::context>
140140 static handle cast (sycl ::context src , return_value_policy , handle )
141141 {
142142 auto tmp =
143- make_SyclContext (reinterpret_cast < DPCTLSyclContextRef > (& src ));
143+ SyclContext_Make (reinterpret_cast < DPCTLSyclContextRef > (& src ));
144144 return handle (reinterpret_cast < PyObject * > (tmp ));
145145 }
146146};
@@ -164,8 +164,8 @@ template <> struct type_caster<sycl::event>
164164 {
165165 PyObject * source = src .ptr ();
166166 if (PyObject_TypeCheck (source , & PySyclEventType )) {
167- DPCTLSyclEventRef ERef =
168- get_event_ref ( reinterpret_cast < PySyclEventObject * > (source ));
167+ DPCTLSyclEventRef ERef = SyclEvent_GetEventRef (
168+ reinterpret_cast < PySyclEventObject * > (source ));
169169 sycl ::event * ev = reinterpret_cast < sycl ::event * > (ERef );
170170 value = * ev ;
171171 return true;
@@ -178,7 +178,7 @@ template <> struct type_caster<sycl::event>
178178
179179 static handle cast (sycl ::event src , return_value_policy , handle )
180180 {
181- auto tmp = make_SyclEvent (reinterpret_cast < DPCTLSyclEventRef > (& src ));
181+ auto tmp = SyclEvent_Make (reinterpret_cast < DPCTLSyclEventRef > (& src ));
182182 return handle (reinterpret_cast < PyObject * > (tmp ));
183183 }
184184};
0 commit comments