DSP¶
This section provides information specific to QNN DSP backend.
API Specializations¶
This section contains information related to API specialization for the DSP backend. All QNN DSP
backend specialization is available under <QNN_SDK_ROOT>/include/QNN/DSP/ directory.
The current version of the QNN DSP backend API is:
-
QNN_DSP_API_VERSION_MAJOR 5
-
QNN_DSP_API_VERSION_MINOR 0
-
QNN_DSP_API_VERSION_PATCH 1
QNN DSP Performance Infrastructure API¶
Clients can invoke QnnBackend_getPerfInfrastructure after loading the QNN DSP library and then invoke methods that are available in File QnnDspPerfInfrastructure.h. These APIs allow a client to control the DSP accelerator’s system settings thereby giving fine-grained control of the accelerator. A few use-cases are:
Set up a voting policy by controlling the voltage corners.
Set up DCVS modes to achieve different performance settings as applicable to a use-case.
Set up the number of threads for the accelerator.
Note:
The DCVS participation flag will be set to FALSE if the dcvsEnableConfig QnnDspPerfInfrastructure_DcvsEnable_t is not provided.
In a power set call, the power mode will be set to power save mode if it is not specified as part of the configs.