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.

Parameters:

pci_info (intptr_t) – The PCI address of the GPU drain state to be queried.

Returns:

The current drain state for this GPU, see nvmlEnableState_t.

Return type:

int

See also

nvmlDeviceQueryDrainState