Forums - snpe-net-run crashes on dsp

5 posts / 0 new
Last post
snpe-net-run crashes on dsp
benw
Join Date: 5 Dec 21
Posts: 2
Posted: Mon, 2021-12-06 02:06
Hello, 
I did the toturial of running Inception V3 from snpe-1.56.2.3050.
I run the net on OnePlus phone with Snapdragon865 , Android 11.
 
It seems I get SIGABRT when running:
 snpe-net-run --container inception_v3_quantized.dlc --input_list target_raw_list.txt --use_dsp
 
and also for --use_aip 
 
When using --use_gpu, or without any flag (CPU) it works as expected. 
Does the SDK support Snapdragon865? (on the webpage of the SDK it says the following are supported:
 
The Qualcomm Neural Processing SDK supports Snapdragon® 855, 845, 820, 835, 712, 675, 660, 653, 652, 650, 636, 632, 630, 626, 625, 450, 439, and 429 as well as Qualcomm® QCS605 and QCS403, Qualcomm® SM6125, the Snapdragon® 820Am automotive platform and Qualcomm Flight. For Qualcomm® Adreno™ GPU support, libOpenCL.so must be present on device.
so no Snapdragon865 according to this list
 
Thanks,
Ben
  • Up0
  • Down0
benw
Join Date: 5 Dec 21
Posts: 2
Posted: Mon, 2021-12-06 06:05

It was resolved, needed to be super user for running the DSP or AIP. 

export ADSP_LIBRARY_PATH="/data/local/tmp/snpeexample/dsp/lib;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp"
  • Up0
  • Down0
zhiguol
Join Date: 16 Dec 19
Posts: 25
Posted: Tue, 2021-12-07 23:12

Thanks for your update for the result :)

  • Up0
  • Down0
iamjianliu
Join Date: 24 Oct 21
Posts: 9
Posted: Tue, 2021-12-14 23:09
Hi, i also met err runing model on dsp.
While i did platform checking for dsp using command snpe-platform-validator --dsp, it showed err like bellow:
**************************************************
ubuntu@qrb5165-rb5:~/lj$ snpe-platform-validator --runtime dsp
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
PF_VALIDATOR: DEBUG: Calling PlatformValidator->RuntimeCheck
PF_VALIDATOR: DEBUG: Testing for the support of DSP runtime.
PF_VALIDATOR: DEBUG: CPU side validation passed.
 
PF_VALIDATOR: DEBUG: starting calculator test
PF_VALIDATOR: DEBUG: Loading DSP stub: libcalculator.so
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libcalculator.so'.  Setting up pointers.
PF_VALIDATOR: ERROR: -2 . Error while executing the sum function.
PF_VALIDATOR: ERROR: Please use testsig if using unsigned images.
PF_VALIDATOR: ERROR: Also make sure ADSP_LIBRARY_PATH points to directory containing skels.
Unit Test on the runtime DSP: Failed.
SNPE is NOT supported for runtime DSP on the device.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable
PF_VALIDATOR: DEBUG: CPU side validation passed.
 
PF_VALIDATOR: DEBUG: starting calculator test
PF_VALIDATOR: DEBUG: Loading DSP stub: libcalculator.so
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libcalculator.so'.  Setting up pointers.
PF_VALIDATOR: ERROR: -2 . Error while executing the sum function.
PF_VALIDATOR: ERROR: Please use testsig if using unsigned images.
PF_VALIDATOR: ERROR: Also make sure ADSP_LIBRARY_PATH points to directory containing skels.
Runtime DSP Prerequisites: Absent.
*******************************************************
my environment is:
Snapdragon865;
ubuntu1804-qrb5165-rb5;
snpe-1.55.0
 
my path settings are:
export SNPE_ROOT=/home/ubuntu/lj/snpe
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${SNPE_ROOT}/lib/aarch64-ubuntu-gcc7.5/
export PATH=$PATH:${SNPE_ROOT}/bin/aarch64-ubuntu-gcc7.5/
export ADSP_LIBRARY_PATH="${SNPE_ROOT}/lib/dsp/;/usr/lib/rfsa/adsp;/dsp"
 
Any advices would be very appritiated.
thanks a lot.
  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Thu, 2021-12-30 18:02

Dear cutomer,

Please try below action and retry again.

1. make sure ADSP_LIBRARY_PATH is set

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TARGET_PATH}/${SNPE_TARGET_ARCH}/lib
export PATH=${PATH}:${TARGET_PATH}/$SNPE_TARGET_ARCH/bin
export ADSP_LIBRARY_PATH=\"${TARGET_PATH}/dsp/lib;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp

2. test with snpe-platform-validator, make sure DSP is OK

Command usage like this snpe-platform-validator --runtime DSP

Notice: Above confirmation command should be executed on devices merely, not any host or client instead.

3. Try with quantized model

4. add command line optioin: --platform_options unsignedPD:ON

To avoid signedPD effect, customer can integrate unsinged process to handle SNPE thread.

 

BR.

Wei

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.