@@ -123,7 +123,7 @@ cdef class SyclDevice(_SyclDevice):
123
123
124
124
"""
125
125
@staticmethod
126
- cdef void _init_helper(SyclDevice device, DPCTLSyclDeviceRef DRef):
126
+ cdef void _init_helper(_SyclDevice device, DPCTLSyclDeviceRef DRef):
127
127
device._device_ref = DRef
128
128
device._device_name = DPCTLDevice_GetName(DRef)
129
129
device._driver_version = DPCTLDevice_GetDriverInfo(DRef)
@@ -132,9 +132,9 @@ cdef class SyclDevice(_SyclDevice):
132
132
133
133
@staticmethod
134
134
cdef SyclDevice _create(DPCTLSyclDeviceRef dref):
135
- cdef SyclDevice ret = < SyclDevice > _SyclDevice.__new__ (_SyclDevice)
135
+ cdef _SyclDevice ret = _SyclDevice.__new__ (_SyclDevice)
136
136
# Initialize the attributes of the SyclDevice object
137
- SyclDevice._init_helper(ret, dref)
137
+ SyclDevice._init_helper(< _SyclDevice > ret, dref)
138
138
return SyclDevice(ret)
139
139
140
140
cdef int _init_from__SyclDevice(self , _SyclDevice other):
@@ -147,6 +147,7 @@ cdef class SyclDevice(_SyclDevice):
147
147
DPCTLDevice_GetMaxWorkItemSizes(self ._device_ref)
148
148
)
149
149
self ._vendor_name = DPCTLDevice_GetVendorName(self ._device_ref)
150
+ return 0
150
151
151
152
cdef int _init_from_selector(self , DPCTLSyclDeviceSelectorRef DSRef):
152
153
# Initialize the attributes of the SyclDevice object
@@ -221,7 +222,7 @@ cdef class SyclDevice(_SyclDevice):
221
222
int: The address of the DPCTLSyclDeviceRef object used to create
222
223
this SyclDevice cast to a size_t.
223
224
"""
224
- return int ( < size_t> self ._device_ref)
225
+ return < size_t> self ._device_ref
225
226
226
227
@property
227
228
def backend (self ):
0 commit comments