Typedef QnnHtpPerfInfrastructure_SetMemoryConfigFn_t

Typedef Documentation

typedef Qnn_ErrorHandle_t (*QnnHtpPerfInfrastructure_SetMemoryConfigFn_t)(uint32_t deviceId, uint32_t coreId, const QnnHtpPerfInfrastructure_MemoryConfig_t **config)

This API allows clients to set up configuration associated with system memory on a specific device.

Param deviceId

[in] Hardware Device on which this config needs to be applied.

Param coreId

[in] Core/NSP on which this config needs to be applied.

Param config

[in] Pointer to a NULL terminated array of config option for system memory configuration. NULL is allowed and indicates no config options are provided.

Return

Error code

QNN_SUCCESS: No error encountered

QNN_HTP_PERF_INFRASTRUCTURE_ERROR_INVALID_INPUT if deviceId/coreId or memory configuration does not exist

QNN_COMMON_ERROR_SYSTEM_COMMUNICATION: SSR occurence (successful recovery)

QNN_COMMON_ERROR_SYSTEM_COMMUNICATION_FATAL: SSR occurence (unsuccessful recovery)