Skip to content

Commit baeb894

Browse files
committed
newline
1 parent 8205139 commit baeb894

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cuda_core/cuda/core/experimental/_device.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def __new__(cls, device_id=None):
6565
for dev_id in range(total):
6666
dev = super().__new__(cls)
6767
dev._id = dev_id
68-
# If the device is in TCC mode, or does not support memory pools for some other reason, use the AsyncMemoryResource which does not use memory pools.
69-
# The DefaultAsyncMempool uses memory pools, which are not always supported.
68+
# If the device is in TCC mode, or does not support memory pools for some other reason,
69+
# use the AsyncMemoryResource which does not use memory pools.
7070
if (handle_return(cudart.cudaGetDeviceProperties(dev_id))).memoryPoolsSupported == 0:
7171
dev._mr = _AsyncMemoryResource(dev_id)
7272
else:

cuda_core/cuda/core/experimental/_memory.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -326,4 +326,5 @@ def is_host_accessible(self) -> bool:
326326

327327
@property
328328
def device_id(self) -> int:
329-
return self._dev_id
329+
return self._dev_id
330+

0 commit comments

Comments
 (0)