cuda.bindings.nvml.device_query_drain_state#

cuda.bindings.nvml.device_query_drain_state(intptr_t pci_info) int#
Query the drain state of a GPU. This method is used to check if a GPU is in a currently draining state. For Linux only.

:param pci_info: The PCI address of the GPU drain state to be queried.
:type pci_info: intptr_t

:returns: The current drain state for this GPU, see ``nvmlEnableState_t``.
:rtype: int

.. seealso:: `nvmlDeviceQueryDrainState`