Qualcomm Hexagon Libraries Example
This example illustrates how to use the Qualcomm Hexagon Libraries (QHL) located under $HEXAGON_SDK_ROOT/libs/qhl
.
Refer to the complete documentation on the QHL library for more details on each supported function and the unit test framework provided to test the performance and accuracy of all functions.
Refer to the Feature Matrix for example support and to know the DSP architecture on the target.
Overview
The example calls a few functions from the qhmath and qhblas libraries and sends their output to the console. The list of functions invoked in this example are listed below:
- qhmath_abs_af
- qhmath_abs_ah
- qhblas_vector_add_af
- qhblas_vector_add_ah
This example uses a different build approach from the other example projects in the SDK: it uses a standalone Makefile and invokes CMake to build the required QHL libs. The standalone Makefile in this project does not have dependencies on the make.d build system.
Using the walkthrough script
The walkthrough script qhl_walkthrough.py
automates the steps of signing the device, building, pushing and running the qhl
example. You can run the walkthrough script with the dry-run (-DR) option to display all the commands that the script would execute without actually running them.
Review the generic setup and walkthrough_scripts instructions to learn more about setting up your device and using the walkthrough script.
Note: In order to build the QHL libraries, the Make build system invokes a CMake command: build_cmake hexagon DSP_ARCH=v68
from within the QHL library project.