Forums - Failed to load network with dsp runtime on sa8155p

5 posts / 0 new
Last post
Failed to load network with dsp runtime on sa8155p
yangji_njau
Join Date: 8 Feb 23
Posts: 6
Posted: Thu, 2023-04-06 01:31

My environment:

  • - Snapdragon SA8155P
  • - snpe-1.50.0.2622
  •  

cmd snpe-platform-validator shows that  DSP is  supported on SA8155P

msmnile_gvmq:/data/local/tmp/inception_v3 # snpe-platform-validator --runtime dsp
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable
PF_VALIDATOR: DEBUG: CPU side validation passed.
 
PF_VALIDATOR: DEBUG: starting calculator test
Runtime DSP Prerequisites: Present.
but when i run cmd snpe-net-run, report error log below
msmnile_gvmq:/data/local/tmp/inception_v3 # snpe-net-run --container inception_v3_quantized.dlc   --input_list target_raw_list.txt --use_dsp
error_code=910; error_message=DSP runtime system error. error_code=910; error_message=DSP runtime system error. Failed to load network.  Error code: -5, Backend Error Code: 0.; error_component=DSP Runtime; line_no=528; thread_id=494
181891328; error_component=DSP Runtime; line_no=262; thread_id=506881438968

while i  run cmd snpe-net-run without --use_dsp, success

msmnile_gvmq:/data/local/tmp/inception_v3 # snpe-net-run --container inception_v3_quantized.dlc   --input_list target_raw_list.txt

-------------------------------------------------------------------------------
Model String: N/A
SNPE v1.50.0.2622
-------------------------------------------------------------------------------
Processing DNN input(s):
cropped/trash_bin.raw
Processing DNN input(s):
cropped/plastic_cup.raw
Processing DNN input(s):
cropped/notice_sign.raw
Processing DNN input(s):
cropped/chairs.raw
i am confused about this problem, help me 
 
  • Up0
  • Down0
sanjjey.a.sanjjey
Join Date: 17 May 22
Posts: 67
Posted: Thu, 2023-04-06 02:20

Hi,

Please do make sure of that you have tried setting up the library path of the DSP.

Follow the steps given in SNPE Docs in order to setup the DSP lib paths, 

https://developer.qualcomm.com/sites/default/files/docs/snpe/dsp_runtime...

 

Thanks

  • Up0
  • Down0
yangji_njau
Join Date: 8 Feb 23
Posts: 6
Posted: Thu, 2023-04-06 02:46

Hi sanjjey

thanks for your reply.

i have setted the library path of the DSP as below

msmnile_gvmq:/ # echo $ADSP_LIBRARY_PATH

/data/local/tmp/snpe-platform-validator/lib/dsp;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp
and passed the  platform validation through cmd snpe-platform-validator
msmnile_gvmq:/ # snpe-platform-validator --runtime dsp
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
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: DEBUG: Success in executing the sum function
Runtime DSP Prerequisites: Present.
but this error still happened
(T_T)

 

  • Up0
  • Down0
ruzhongl
Join Date: 7 Jun 21
Posts: 45
Posted: Thu, 2023-04-06 20:46

seems you use Android GVM.  Known issue on HQX 1.0 baseline that SNPE is not support well due do virtual fastrpc driver support.

If you use HQX 1.0, not suggest to verify SNPE.

I suggest to use HQX 1.2.1.c1. If you use HQX 1.2.1.c1 baseline, you can check logcat with enable more snpe related logs.

echo 0x1f > /vendor/lib/rfsa/adsp/snpe-net-run.farf

In all, basic requirement is  pushing  snpe arm lib into /vendor/lib64/, push snpe dsp lib into /vendor/lib/rfsa/adsp/

  • Up0
  • Down0
ruzhongl
Join Date: 7 Jun 21
Posts: 45
Posted: Thu, 2023-04-06 20:47

b.t.w, for AUTO project, we have support team, you can raise case via creatpoint to get better and quciker support 

  • 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.