Skip to content

Commit 8205139

Browse files
committed
switch the attribute retreival
1 parent 219e2b7 commit 8205139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/cuda/core/experimental/_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __new__(cls, device_id=None):
6767
dev._id = dev_id
6868
# 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.
6969
# The DefaultAsyncMempool uses memory pools, which are not always supported.
70-
if handle_return(cudart.cudaGetDeviceProperties(dev_id))['CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED'] == 0:
70+
if (handle_return(cudart.cudaGetDeviceProperties(dev_id))).memoryPoolsSupported == 0:
7171
dev._mr = _AsyncMemoryResource(dev_id)
7272
else:
7373
dev._mr = _DefaultAsyncMempool(dev_id)

0 commit comments

Comments
 (0)