Skip to content

Commit 866c423

Browse files
committed
format fixes
1 parent 6963c4f commit 866c423

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

cuda_core/cuda/core/experimental/_device.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,6 @@ def stream_priorities_supported(self) -> bool:
974974
self._get_cached_attribute(driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED)
975975
)
976976

977-
978977
@property
979978
def cooperative_multi_device_launch(self) -> bool:
980979
"""
@@ -1004,7 +1003,9 @@ def virtual_address_management_supported(self) -> bool:
10041003
bool: True if device supports virtual address management, False if not.
10051004
"""
10061005
return bool(
1007-
self._get_cached_attribute(driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED)
1006+
self._get_cached_attribute(
1007+
driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED
1008+
)
10081009
)
10091010

10101011
@property
@@ -1013,7 +1014,9 @@ def timeline_semaphore_interop_supported(self) -> bool:
10131014
bool: True if device supports timeline semaphore interop, False if not.
10141015
"""
10151016
return bool(
1016-
self._get_cached_attribute(driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED)
1017+
self._get_cached_attribute(
1018+
driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED
1019+
)
10171020
)
10181021

10191022
@property
@@ -1177,15 +1180,19 @@ def host_memory_pools_supported(self) -> bool:
11771180
"""
11781181
bool: True if device supports host memory pools, False if not.
11791182
"""
1180-
return bool(self._get_cached_attribute(driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED))
1183+
return bool(
1184+
self._get_cached_attribute(driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED)
1185+
)
11811186

11821187
@property
11831188
def host_virtual_memory_management_supported(self) -> bool:
11841189
"""
11851190
bool: True if device supports host virtual memory management, False if not.
11861191
"""
11871192
return bool(
1188-
self._get_cached_attribute(driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED)
1193+
self._get_cached_attribute(
1194+
driver.CUdevice_attribute.CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED
1195+
)
11891196
)
11901197

11911198
@property
@@ -1209,7 +1216,6 @@ def only_partial_host_native_atomic_supported(self) -> bool:
12091216
)
12101217

12111218

1212-
12131219
_SUCCESS = driver.CUresult.CUDA_SUCCESS
12141220
_INVALID_CTX = driver.CUresult.CUDA_ERROR_INVALID_CONTEXT
12151221

0 commit comments

Comments
 (0)