[][src]Function nvml_binding::bindings::nvmlDeviceQueryDrainState

pub unsafe extern "C" fn nvmlDeviceQueryDrainState(
    pciInfo: *mut nvmlPciInfo_t,
    currentState: *mut nvmlEnableState_t
) -> nvmlReturn_t

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.

For Pascal &tm; or newer fully supported devices. Some Kepler devices supported.

@param pciInfo The PCI address of the GPU drain state to be queried @param currentState The current drain state for this GPU, see \ref nvmlEnableState_t

@return - \ref NVML_SUCCESS if counters were successfully reset - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_INVALID_ARGUMENT if \a nvmlIndex or \a currentState is invalid - \ref NVML_ERROR_NOT_SUPPORTED if the device doesn't support this feature - \ref NVML_ERROR_UNKNOWN on any unexpected error