[][src]Function nvml_binding::bindings::nvmlDeviceGetPowerManagementLimitConstraints

pub unsafe extern "C" fn nvmlDeviceGetPowerManagementLimitConstraints(
    device: nvmlDevice_t,
    minLimit: *mut c_uint,
    maxLimit: *mut c_uint
) -> nvmlReturn_t

Retrieves information about possible values of power management limits on this device.

For Kepler &tm; or newer fully supported devices.

@param device The identifier of the target device @param minLimit Reference in which to return the minimum power management limit in milliwatts @param maxLimit Reference in which to return the maximum power management limit in milliwatts

@return - \ref NVML_SUCCESS if \a minLimit and \a maxLimit have been set - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_INVALID_ARGUMENT if \a device is invalid or \a minLimit or \a maxLimit 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 nvmlDeviceSetPowerManagementLimit