File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1014,8 +1014,7 @@ cdef class SyclDevice(_SyclDevice):
1014
1014
cdef int64_t relId = - 1
1015
1015
1016
1016
DTy = DPCTLDevice_GetDeviceType(self ._device_ref)
1017
- relId = DPCTLDeviceMgr_GetPositionInDevices(
1018
- self ._device_ref, _backend_type._ALL_BACKENDS | DTy)
1017
+ relId = DPCTLDeviceMgr_GetPositionInDevices(self ._device_ref, DTy)
1019
1018
return relId
1020
1019
1021
1020
cdef int get_backend_ordinal(self ):
@@ -1032,8 +1031,7 @@ cdef class SyclDevice(_SyclDevice):
1032
1031
cdef int64_t relId = - 1
1033
1032
1034
1033
BTy = DPCTLDevice_GetBackend(self ._device_ref)
1035
- relId = DPCTLDeviceMgr_GetPositionInDevices(
1036
- self ._device_ref, BTy | _device_type._ALL_DEVICES)
1034
+ relId = DPCTLDeviceMgr_GetPositionInDevices(self ._device_ref, BTy)
1037
1035
return relId
1038
1036
1039
1037
cdef int get_overall_ordinal(self ):
You can’t perform that action at this time.
0 commit comments