@@ -85,7 +85,6 @@ from ._backend cimport ( # noqa: E211
8585 DPCTLDevice_IsCPU,
8686 DPCTLDevice_IsGPU,
8787 DPCTLDeviceMgr_GetDeviceInfoStr,
88- DPCTLDeviceMgr_GetDevices,
8988 DPCTLDeviceMgr_GetPositionInDevices,
9089 DPCTLDeviceMgr_GetRelativeId,
9190 DPCTLDeviceSelector_Delete,
@@ -348,7 +347,7 @@ cdef class SyclDevice(_SyclDevice):
348347 if ret == - 1 :
349348 raise SyclDeviceCreationError(
350349 " Could not create a SyclDevice with the selector string "
351- " '{selector_string}'" .format(selector_string = arg)
350+ " '{selector_string}'" .format(selector_string = arg)
352351 )
353352 elif isinstance (arg, _SyclDevice):
354353 ret = self ._init_from__SyclDevice(arg)
@@ -810,7 +809,6 @@ cdef class SyclDevice(_SyclDevice):
810809 cdef _aspect_type AT = _aspect_type._is_component
811810 return DPCTLDevice_HasAspect(self ._device_ref, AT)
812811
813-
814812 @property
815813 def has_aspect_is_composite (self ):
816814 """ Returns ``True`` if this device is a composite device, ``False``
@@ -1113,8 +1111,8 @@ cdef class SyclDevice(_SyclDevice):
11131111
11141112 @property
11151113 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.
11181116
11191117 Returns:
11201118 bool:
@@ -1155,7 +1153,7 @@ cdef class SyclDevice(_SyclDevice):
11551153 DPCTLSize_t_Array_Delete(sg_sizes)
11561154 return res
11571155 else :
1158- return []
1156+ return []
11591157
11601158 @property
11611159 def sycl_platform (self ):
@@ -1667,19 +1665,20 @@ cdef class SyclDevice(_SyclDevice):
16671665
16681666 - Specifying an int (``count``)
16691667 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.
16751673
16761674 - 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"``.
16791678
16801679 - 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.
16831682
16841683 Returns:
16851684 List[:class:`dpctl.SyclDevice`]:
@@ -1816,7 +1815,7 @@ cdef class SyclDevice(_SyclDevice):
18161815 """
18171816 cdef uint32_t clock_fr = DPCTLDevice_GetMaxClockFrequency(
18181817 self ._device_ref
1819- )
1818+ )
18201819 return clock_fr
18211820
18221821 @property
@@ -1829,7 +1828,7 @@ cdef class SyclDevice(_SyclDevice):
18291828 """
18301829 cdef uint64_t max_alloc_sz = DPCTLDevice_GetMaxMemAllocSize(
18311830 self ._device_ref
1832- )
1831+ )
18331832 return max_alloc_sz
18341833
18351834 @property
@@ -1875,7 +1874,7 @@ cdef class SyclDevice(_SyclDevice):
18751874 """
18761875 cdef uint64_t cache_sz = DPCTLDevice_GetGlobalMemCacheSize(
18771876 self ._device_ref
1878- )
1877+ )
18791878 return cache_sz
18801879
18811880 @property
@@ -1888,7 +1887,7 @@ cdef class SyclDevice(_SyclDevice):
18881887 """
18891888 cdef uint64_t cache_line_sz = DPCTLDevice_GetGlobalMemCacheLineSize(
18901889 self ._device_ref
1891- )
1890+ )
18921891 return cache_line_sz
18931892
18941893 @property
@@ -1957,9 +1956,6 @@ cdef class SyclDevice(_SyclDevice):
19571956 assert level_zero_gpu == dev
19581957 """
19591958 cdef DPCTLSyclDeviceRef pDRef = NULL
1960- cdef _backend_type BTy
1961- cdef _device_type DTy
1962- cdef int64_t relId = - 1
19631959 pDRef = DPCTLDevice_GetParentDevice(self ._device_ref)
19641960 if (pDRef is NULL ):
19651961 return _cached_filter_string(self )
0 commit comments