def nvmlDeviceSetAutoBoostedClocksEnabled(handle, enabled):
    r"""
    /**
     * Try to set the current state of Auto Boosted clocks on a device.
     *
     * For Kepler &tm; or newer fully supported devices.
     *
     * Auto Boosted clocks are enabled by default on some hardware, allowing the GPU to run at higher clock rates
     * to maximize performance as thermal limits allow. Auto Boosted clocks should be disabled if fixed clock
     * rates are desired.
     *
     * Non-root users may use this API by default but can be restricted by root from using this API by calling
     * \ref nvmlDeviceSetAPIRestriction with apiType=NVML_RESTRICTED_API_SET_AUTO_BOOSTED_CLOCKS.
     * Note: Persistence Mode is required to modify current Auto Boost settings, therefore, it must be enabled.
     *
     * On Pascal and newer hardware, Auto Boosted clocks are controlled through application clocks.
     * Use \ref nvmlDeviceSetApplicationsClocks and \ref nvmlDeviceResetApplicationsClocks to control Auto Boost
     * behavior.
     *
     * @param device                               The identifier of the target device
     * @param enabled                              What state to try to set Auto Boosted clocks of the target device to
     *
     * @return
     *         - \ref NVML_SUCCESS                 If the Auto Boosted clocks were successfully set to the state specified by \a enabled
     *         - \ref NVML_ERROR_UNINITIALIZED     if the library has not been successfully initialized
     *         - \ref NVML_ERROR_INVALID_ARGUMENT  if \a device is invalid
     *         - \ref NVML_ERROR_NOT_SUPPORTED     if the device does not support Auto Boosted clocks
     *         - \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
     *
     */
    nvmlReturn_t DECLDIR nvmlDeviceSetAutoBoostedClocksEnabled
    """
    fn = _nvmlGetFunctionPointer("nvmlDeviceSetAutoBoostedClocksEnabled")
    ret = fn(handle, _nvmlEnableState_t(enabled))
    _nvmlCheckReturn(ret)
    return None