Get number of devices
(self)
| 169 | _check_return(_NVML.get_function("nvmlShutdown")()) |
| 170 | |
| 171 | def num_devices(self): |
| 172 | """Get number of devices """ |
| 173 | c_count = c_uint() |
| 174 | _check_return(_NVML.get_function( |
| 175 | "nvmlDeviceGetCount_v2")(byref(c_count))) |
| 176 | return c_count.value |
| 177 | |
| 178 | def devices(self): |
| 179 | """ |
no test coverage detected