@@ -85,7 +85,6 @@ from ._backend cimport ( # noqa: E211
85
85
DPCTLDevice_IsCPU,
86
86
DPCTLDevice_IsGPU,
87
87
DPCTLDeviceMgr_GetDeviceInfoStr,
88
- DPCTLDeviceMgr_GetDevices,
89
88
DPCTLDeviceMgr_GetPositionInDevices,
90
89
DPCTLDeviceMgr_GetRelativeId,
91
90
DPCTLDeviceSelector_Delete,
@@ -348,7 +347,7 @@ cdef class SyclDevice(_SyclDevice):
348
347
if ret == - 1 :
349
348
raise SyclDeviceCreationError(
350
349
" Could not create a SyclDevice with the selector string "
351
- " '{selector_string}'" .format(selector_string = arg)
350
+ " '{selector_string}'" .format(selector_string = arg)
352
351
)
353
352
elif isinstance (arg, _SyclDevice):
354
353
ret = self ._init_from__SyclDevice(arg)
@@ -810,7 +809,6 @@ cdef class SyclDevice(_SyclDevice):
810
809
cdef _aspect_type AT = _aspect_type._is_component
811
810
return DPCTLDevice_HasAspect(self ._device_ref, AT)
812
811
813
-
814
812
@property
815
813
def has_aspect_is_composite (self ):
816
814
""" Returns ``True`` if this device is a composite device, ``False``
@@ -1113,8 +1111,8 @@ cdef class SyclDevice(_SyclDevice):
1113
1111
1114
1112
@property
1115
1113
def sub_group_independent_forward_progress (self ):
1116
- """ Returns ``True`` if the device supports independent forward progress of
1117
- sub-groups with respect to other sub-groups in the same work-group.
1114
+ """ Returns ``True`` if the device supports independent forward progress
1115
+ of sub-groups with respect to other sub-groups in the same work-group.
1118
1116
1119
1117
Returns:
1120
1118
bool:
@@ -1155,7 +1153,7 @@ cdef class SyclDevice(_SyclDevice):
1155
1153
DPCTLSize_t_Array_Delete(sg_sizes)
1156
1154
return res
1157
1155
else :
1158
- return []
1156
+ return []
1159
1157
1160
1158
@property
1161
1159
def sycl_platform (self ):
@@ -1667,19 +1665,20 @@ cdef class SyclDevice(_SyclDevice):
1667
1665
1668
1666
- Specifying an int (``count``)
1669
1667
The returned list contains as
1670
- many sub-devices as can be created such that each sub-device
1671
- contains ``count`` compute units. If the device’s total number
1672
- of compute units is not evenly divided by ``count``, then the
1673
- remaining compute units are not included in any of the
1674
- sub-devices.
1668
+ many sub-devices as can be created such that each
1669
+ sub-device contains ``count`` compute units. If the
1670
+ device’s total number of compute units is not evenly
1671
+ divided by ``count``, then the remaining compute units
1672
+ are not included in any of the sub-devices.
1675
1673
1676
1674
- Specifying an affinity domain as a string
1677
- The supported values are: ``"numa"``, ``"L4_cache"``, ``"L3_cache"``,
1678
- ``"L2_cache"``, ``"L1_cache"``, ``"next_partitionable"``.
1675
+ The supported values are: ``"numa"``, ``"L4_cache"``,
1676
+ ``"L3_cache"``, ``"L2_cache"``, ``"L1_cache"``,
1677
+ ``"next_partitionable"``.
1679
1678
1680
1679
- Specifying a collection of integral values
1681
- For each non-zero value ``M`` in the collection, a sub-device with ``M``
1682
- compute units is created.
1680
+ For each non-zero value ``M`` in the collection, a
1681
+ sub-device with ``M`` compute units is created.
1683
1682
1684
1683
Returns:
1685
1684
List[:class:`dpctl.SyclDevice`]:
@@ -1816,7 +1815,7 @@ cdef class SyclDevice(_SyclDevice):
1816
1815
"""
1817
1816
cdef uint32_t clock_fr = DPCTLDevice_GetMaxClockFrequency(
1818
1817
self ._device_ref
1819
- )
1818
+ )
1820
1819
return clock_fr
1821
1820
1822
1821
@property
@@ -1829,7 +1828,7 @@ cdef class SyclDevice(_SyclDevice):
1829
1828
"""
1830
1829
cdef uint64_t max_alloc_sz = DPCTLDevice_GetMaxMemAllocSize(
1831
1830
self ._device_ref
1832
- )
1831
+ )
1833
1832
return max_alloc_sz
1834
1833
1835
1834
@property
@@ -1875,7 +1874,7 @@ cdef class SyclDevice(_SyclDevice):
1875
1874
"""
1876
1875
cdef uint64_t cache_sz = DPCTLDevice_GetGlobalMemCacheSize(
1877
1876
self ._device_ref
1878
- )
1877
+ )
1879
1878
return cache_sz
1880
1879
1881
1880
@property
@@ -1888,7 +1887,7 @@ cdef class SyclDevice(_SyclDevice):
1888
1887
"""
1889
1888
cdef uint64_t cache_line_sz = DPCTLDevice_GetGlobalMemCacheLineSize(
1890
1889
self ._device_ref
1891
- )
1890
+ )
1892
1891
return cache_line_sz
1893
1892
1894
1893
@property
@@ -1957,9 +1956,6 @@ cdef class SyclDevice(_SyclDevice):
1957
1956
assert level_zero_gpu == dev
1958
1957
"""
1959
1958
cdef DPCTLSyclDeviceRef pDRef = NULL
1960
- cdef _backend_type BTy
1961
- cdef _device_type DTy
1962
- cdef int64_t relId = - 1
1963
1959
pDRef = DPCTLDevice_GetParentDevice(self ._device_ref)
1964
1960
if (pDRef is NULL ):
1965
1961
return _cached_filter_string(self )
0 commit comments