Hi,
Is there any examples of running QNN SDK qnn-net-run with the Htp backend on embedded linux. All the examples are shown on android.
I am working on SA8295 and the CPU and GPU backends work fine. When I try to use the Htp backend (by following the tutorial for qnn-net-run)
I get the following error:
unsigned PD or DSPRPC_GET_DSP_INFO not supported by DSP
DspTransport.openSession qnn_open failed, 0xffffffff
The qnn-platform validator also does not find the required backend libraries and fails with:
PF_VALIDATOR: ERROR -2. Error while executing the sum function
I have tried to set the LD_LIBRARY_PATH and ADSP_LIBRARY_PATH to all directories i can think of
Thanks
Dear developer,
We have no plan to support QNN on embedded linux only in Android devcie.
Could you please take a look about the adb logs if error happened?
BR.
Wei
Hi,
Thanks for the reply.
Im a bit confused because the QNN library has support for embedded linux and I can perfectly fine run models with the cpu and gpu.
This error occurs when im trying to run things on the HTP backend.
I also want to ask what is the preferred way to run neural network models on the SA8295 device?
Should I use SNPE or QNN and which backend is the preferred one to use the Hexagon processors?
Thanks
Hi, is this problem solved? I met the same problem
Hello,
I found that you need to quantize models for running on HTP backend at QNN documents somewhere.
On the other hand, I was never able to run models on Linux oe. The first tutorial in QNN SDK shows and explained which dynamic library files should be transfered to SA8295p for different platforms android, linux oe etc. And i found similar .so files found under $QNN_SDK_ROOT/2.17.0.231124/lib/aarch64-oe-linux-gcc11.2 etc.
However, there is a huge missing information about creation with qnn-model-lib-generator for target oe-linux devices. I debug the problem and found that makefiles for model generation such as qnn/2.17.0.231124/share/QNN/converter/Makefile.oe-linux-aarch64-gcc9.3 is missing OE compiler:
/sysroots/x86_64-oesdk-linux/usr/bin/aarch64-oe-linux/aarch64-oe-linux-g++: not found
How did you able to generate models for linux with qnn-model-lib-generator? I could not find anything in web for this compilers and setup to my system.