Forums - DSP runtime available with SDK v1.38.0 but not v1.47.0

4 posts / 0 new
Last post
DSP runtime available with SDK v1.38.0 but not v1.47.0
bkaraban
Join Date: 19 Feb 21
Posts: 8
Posted: Wed, 2021-02-24 02:33

I've been trying to update my device from SNPE 1.38 to 1.47 but when using SNPE 1.47, the DSP runtime isn't available (neither snpe-net-run not ). CPU and GPU runtimes work fine. I get the following error:

error_code=500; error_message=Target runtime is not available. error_code=500; error_message=Target runtime is not available. No viable runtimes available.; error_component=Host Runtime; line_no=423; thread_id=548346384656; error_component=Host Runtime; line_no=263; thread_id=548497207312
 

I'm using a S820Am board running AGL 4.99 (Linux 4.4.140-perf on aarch64) and the following script to setup SNPE paths, commenting/uncommenting the first line to select the version:

export SNPE_ROOT=~/snpe-1.38.0
#export SNPE_ROOT=~/snpe-1.47.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${SNPE_ROOT}/lib/aarch64-linux-gcc4.9/
export PATH=$PATH:${SNPE_ROOT}/bin/aarch64-linux-gcc4.9/
export ADSP_LIBRARY_PATH="${SNPE_ROOT}/lib/dsp/;/usr/lib/rfsa/adsp;/dsp"
 
Here's the content of some relevant folders:
/dsp:
AlacDecoderModule.so.1  DolbySurroundModule.so.1          HeaacDecoderModule.so.1   WmaStdDecoderModule.so.1       lost+found
ApeDecoderModule.so.1   EtsiAmrWbPlusDecModule.so.1       SAPlusCmnModule.so.1      fastrpc_shell_0                map_SHARED_LIBS_AAAAAAAAQ.txt
AudioSphereModule.so.1  EtsiEaacPlusEncAndCmnModule.so.1  VorbisDecoderModule.so.1  fluence_voiceplus_module.so.1  map_avs_shared_libs.txt
DolbyMobileModule.so.1  FlacDecoderModule.so.1            WmaProDecoderModule.so.1  libsysmon_skel.so              mmecns_module.so.1
 
/usr/lib/rfsa/adsp/:
capi_v2_bmt.so  capi_v2_loud.so  capi_v2_sumx.so  libapps_mem_heap.so  libfastcvadsp.so       sec_module.so.1
capi_v2_fnb.so  capi_v2_peq.so   icc_module.so.1  libdspCV_skel.so     libfastcvadsp_skel.so
 
~/snpe-1.38.0/lib/dsp/:
libcalculator_domains_skel.so  libcalculator_skel.so  libsnpe_dsp_domains_skel.so  libsnpe_dsp_skel.so  libsnpe_dsp_v65_domains_v2_skel.so  libsnpe_dsp_v66_domains_v2_skel.so
 
~/snpe-1.47.0/lib/dsp/:
libcalculator_skel.so  libsnpe_dsp_v65_domains_v2_skel.so  libsnpe_dsp_v66_domains_v2_skel.so  libsnpe_dsp_v68_domains_v3_skel.so
 
Note that the v1.47 lib/dsp folder contains less files than the v1.38 one. Could it be the source of the problem?
  • Up0
  • Down0
bkaraban
Join Date: 19 Feb 21
Posts: 8
Posted: Mon, 2021-03-01 01:57

I've tested several SDK versions and they work up to 1.41.0 included. I can't use the DSP runtime starting with 1.42.0. Looking at the revision history, I see "Removed V60 DSP libs from SNPE SDK." listed under version 1.42.0.

The S820Am board I'm using includes an Hexagon 680 DSP which I think support the V60 instruction set so I guess this is by design?

  • Up0
  • Down0
iamjianliu
Join Date: 24 Oct 21
Posts: 9
Posted: Tue, 2021-12-14 22:13

Hi, did your snpe-platform-validator --runtime dsp check passed? I also met this issue.

My environment is blow:

qualcomm 865;

ubuntu1804 qrb5165-rb5;

snpe 1.55.0

I did platform checking and it showed error bellow:

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.
  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Thu, 2021-12-30 18:10

Dear customer,

Please try to below commands list 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.