@@ -113,7 +113,7 @@ cdef class SyclContext:
113
113
The address of the DPPLSyclContextRef object used to create this
114
114
SyclContext cast to a long.
115
115
"""
116
- return int (< long > self ._ctx_ref)
116
+ return int (< size_t > self ._ctx_ref)
117
117
118
118
cdef class SyclDevice:
119
119
''' Wrapper class for a Sycl Device
@@ -180,7 +180,7 @@ cdef class SyclDevice:
180
180
The address of the DPPLSyclDeviceRef object used to create this
181
181
SyclDevice cast to a long.
182
182
"""
183
- return int (< long > self ._device_ref)
183
+ return int (< size_t > self ._device_ref)
184
184
185
185
cdef class SyclEvent:
186
186
''' Wrapper class for a Sycl Event
@@ -213,7 +213,7 @@ cdef class SyclEvent:
213
213
The address of the DPPLSyclEventRef object used to create this
214
214
SyclEvent cast to a long.
215
215
"""
216
- return int (< long > self ._event_ref)
216
+ return int (< size_t > self ._event_ref)
217
217
218
218
219
219
cdef class SyclKernel:
@@ -255,7 +255,7 @@ cdef class SyclKernel:
255
255
The address of the DPPLSyclKernelRef object used to create this
256
256
SyclKernel cast to a long.
257
257
"""
258
- return int (< long > self ._kernel_ref)
258
+ return int (< size_t > self ._kernel_ref)
259
259
260
260
cdef class SyclProgram:
261
261
''' Wraps a sycl::program object created from an OpenCL interoperability
@@ -295,7 +295,7 @@ cdef class SyclProgram:
295
295
The address of the DPPLSyclProgramRef object used to create this
296
296
SyclProgram cast to a long.
297
297
"""
298
- return int (< long > self ._program_ref)
298
+ return int (< size_t > self ._program_ref)
299
299
300
300
import ctypes
301
301
@@ -435,7 +435,7 @@ cdef class SyclQueue:
435
435
The address of the DPPLSyclQueueRef object used to create this
436
436
SyclQueue cast to a long.
437
437
"""
438
- return int (< long > self ._queue_ref)
438
+ return int (< size_t > self ._queue_ref)
439
439
440
440
cpdef SyclEvent submit (self , SyclKernel kernel, list args, list gS, \
441
441
list lS = None , list dEvents = None ):
0 commit comments