cuda.bindings.nvml.device_discover_gpus#
- cuda.bindings.nvml.device_discover_gpus(pci_info)#
Request the OS and the NVIDIA kernel driver to rediscover a portion of the PCI subsystem looking for GPUs that were previously removed. The portion of the PCI tree can be narrowed by specifying a domain, bus, and device. If all are zeroes then the entire PCI tree will be searched. Please note that for long-running NVML processes the enumeration will change based on how many GPUs are discovered and where they are inserted in bus order.
In addition, all newly discovered GPUs will be initialized and their ECC scrubbed which may take several seconds per GPU. Also, all device handles are no longer guaranteed to be valid post discovery. Must be run as administrator. For Linux only. For Pascal ™️ or newer fully supported devices. Some Kepler devices supported.
- Parameters:
pci_info (intptr_t) – The PCI tree to be searched. Only the domain, bus, and device fields are used in this call.
See also
nvmlDeviceDiscoverGpus