File QnnHtaPerfInfrastructure.h¶
↰ Parent directory (include/QNN/HTA)
QNN HTA component Performance Infrastructure API.
Contents
Definition (include/QNN/HTA/QnnHtaPerfInfrastructure.h)¶
Detailed Description¶
Provides interface to the client to control performance and system settings of the QNN HTA Accelerator
Includes¶
QnnCommon.h(File QnnCommon.h)QnnTypes.h(File QnnTypes.h)
Included By¶
Enums¶
Full File Listing¶
QNN HTA component Performance Infrastructure API.
Provides interface to the client to control performance and system
settings of the QNN HTA Accelerator
Defines
-
QNN_HTA_PERF_INFRASTRUCTURE_POWER_CONFIG_INIT { \
QNN_HTA_PERF_INFRASTRUCTURE_POWER_CONFIGOPTION_UNKNOWN
, /*config*/ \
{ \
QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_UNKNOWN/*powerModeConfig*/ \
} \
}
QnnHtaPerfInfrastructure_PowerConfig_t initializer macro.
Typedefs
-
typedef Qnn_ErrorHandle_t (*QnnHtaPerfInfrastructure_SetPowerConfigFn_t)(uint32_t clientId, const QnnHtaPerfInfrastructure_PowerConfig_t **config)¶
This API allows client to set up system power configuration that will enable different performance modes.
- Param clientId
[in] A power client id to associate calls to system power settings. A value of 0 implies NULL power client id and can override every other setting the user process. To enable power settings for multiple clients in the same process, use a non-zero power client id.
- Param config
[in] Pointer to a NULL terminated array of config option for performance configuration. NULL is allowed and indicates no config options are provided.
- Return
Error code
QNN_SUCCESS: No error encountered
Enums
-
enum QnnHtaPerfInfrastructure_Error_t
QNN HTA PerfInfrastructure API result / error codes.
Values:
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_MIN_ERROR = 13000
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_NO_ERROR = 0
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_ERROR_INVALID_HANDLE_PTR = 13000 + 0
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_ERROR_INVALID_INPUT = 13000 + 1
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_ERROR_UNSUPPORTED_CONFIG = 13000 + 2
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_ERROR_TRANSPORT = 13000 + 3
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_MAX_ERROR = 13999
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_MIN_ERROR = 13000
-
enum QnnHtaPerfInfrastructure_PowerConfigOption_t¶
This enum defines all the possible performance options in Hta Performance Infrastructure that relate to setting up of power levels.
Values:
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWER_CONFIGOPTION_POWER_MODE = 1¶
config enum implies the usage of powerModeConfig struct. If not provided will be used as type identificator
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWER_CONFIGOPTION_UNKNOWN = 0x7fffffff¶
UNKNOWN config option which must not be used.
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWER_CONFIGOPTION_POWER_MODE = 1¶
-
enum QnnHtaPerfInfrastructure_PowerMode_t¶
This enum defines all the possible power mode that a client can set.
Values:
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_DEFAULT = 0¶
default mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_LOW_POWER_SAVER = 1¶
low power saver mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_POWER_SAVER = 2¶
power saver mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_HIGH_POWER_SAVER = 3¶
high power saver mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_BALANCED = 4¶
balanced mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_HIGH_PERFORMANCE = 5¶
high performance mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_BURST = 6¶
burst mode
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_UNKNOWN = 0x7fffffff¶
UNKNOWN value that must not be used by client.
-
enumerator QNN_HTA_PERF_INFRASTRUCTURE_POWERMODE_DEFAULT = 0¶
-
struct QnnHtaPerfInfrastructure_PowerConfig_t¶
- #include <QnnHtaPerfInfrastructure.h>
This struct provides performance infrastructure configuration associated with setting up of power levels.
Public Members
-
QnnHtaPerfInfrastructure_PowerMode_t powerModeConfig¶
-
union QnnHtaPerfInfrastructure_PowerConfig_t::[anonymous] [anonymous]¶
-
QnnHtaPerfInfrastructure_PowerMode_t powerModeConfig¶