We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 219e2b7 commit 8205139Copy full SHA for 8205139
cuda_core/cuda/core/experimental/_device.py
@@ -67,7 +67,7 @@ def __new__(cls, device_id=None):
67
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.
70
- if handle_return(cudart.cudaGetDeviceProperties(dev_id))['CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED'] == 0:
+ if (handle_return(cudart.cudaGetDeviceProperties(dev_id))).memoryPoolsSupported == 0:
71
dev._mr = _AsyncMemoryResource(dev_id)
72
else:
73
dev._mr = _DefaultAsyncMempool(dev_id)
0 commit comments