[][src]Function nvml_binding::bindings::nvmlDeviceGetGpuOperationMode

pub unsafe extern "C" fn nvmlDeviceGetGpuOperationMode(
    device: nvmlDevice_t,
    current: *mut nvmlGpuOperationMode_t,
    pending: *mut nvmlGpuOperationMode_t
) -> nvmlReturn_t

Retrieves the current GOM and pending GOM (the one that GPU will switch to after reboot).

For GK110 M-class and X-class Tesla &tm; products from the Kepler family. Modes \ref NVML_GOM_LOW_DP and \ref NVML_GOM_ALL_ON are supported on fully supported GeForce products. Not supported on Quadro ® and Tesla &tm; C-class products.

@param device The identifier of the target device @param current Reference in which to return the current GOM @param pending Reference in which to return the pending GOM

@return - \ref NVML_SUCCESS if \a mode has been populated - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_INVALID_ARGUMENT if \a device is invalid or \a current or \a pending is NULL - \ref NVML_ERROR_NOT_SUPPORTED if the device does not support this feature - \ref NVML_ERROR_GPU_IS_LOST if the target GPU has fallen off the bus or is otherwise inaccessible - \ref NVML_ERROR_UNKNOWN on any unexpected error

@see nvmlGpuOperationMode_t @see nvmlDeviceSetGpuOperationMode