We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b97924a commit 32dff8eCopy full SHA for 32dff8e
cuda_core/cuda/core/system/_mig.pxi
@@ -95,7 +95,8 @@ cdef class MigInfo:
95
_, pending = nvml.device_get_mig_mode(self._device._handle)
96
return pending == nvml.EnableState.FEATURE_ENABLED
97
98
- def get_device_count(self) -> int:
+ @property
99
+ def device_count(self) -> int:
100
"""
101
Get the maximum number of MIG devices that can exist under this device.
102
@@ -110,7 +111,8 @@ cdef class MigInfo:
110
111
112
return nvml.device_get_max_mig_device_count(self._device._handle)
113
- def get_parent_device(self) -> Device:
114
115
+ def parent(self) -> Device:
116
117
For MIG devices, get the parent GPU device.
118
0 commit comments