File QnnGlobalConfig.h

Parent directory (include/QNN)

Config component API.

Definition (include/QNN/QnnGlobalConfig.h)

Detailed Description

This is top level QNN API component.

Includes

Included By

Full File Listing

Config component API.

    This is top level QNN API component.

Defines

QNN_GLOBAL_CONFIG_INIT   {                                                 \     QNN_GLOBAL_CONFIG_OPTION_UNDEFINED

, /*option*/  \

{                                               \

QNN_SOC_MODEL_UNKNOWN

/*socModel*/            \

}                                               \

}


QnnBackend_Config_t initializer macro.

Enums

enum QnnGlobalConfig_Error_t

QNN Config API result / error codes.

Values:

enumerator QNN_GLOBAL_CONFIG_MIN_ERROR = 15000
enumerator QNN_GLOBAL_CONFIG_NO_ERROR = 0

Qnn Global Config success.

enumerator QNN_GLOBAL_CONFIG_ERROR_INVALID_CONFIG = 15000

Invalid config.

enumerator QNN_GLOBAL_CONFIG_MAX_ERROR = 15999
enumerator QNN_GLOBAL_CONFIG_ERROR_UNDEFINED = 0x7FFFFFFF
enum QnnGlobalConfig_ConfigOption_t

Values:

enumerator QNN_GLOBAL_CONFIG_OPTION_SOC_MODEL = 0
enumerator QNN_GLOBAL_CONFIG_OPTION_UNDEFINED = 0x7FFFFFFF

Functions

Qnn_ErrorHandle_t QnnGlobalConfig_Set(const QnnGlobalConfig_t **config)

A function to set global configuration settings.

Parameters

config[in] Pointer to a NULL terminated array of config option pointers. NULL is allowed and indicates no config options are provided. All config options have default value, in case not provided. If same config option type is provided multiple times, the last option value will be used.

Returns

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_GLOBAL_CONFIG_ERROR_INVALID_CONFIG: config parameter is invalid

struct QnnGlobalConfig_t
#include <QnnGlobalConfig.h>

Public Members

QnnGlobalConfig_ConfigOption_t option
union unnamed
#include <QnnGlobalConfig.h>

Public Members

Qnn_SocModel_t socModel