Forums - SNPE cannot work with DSP on Snapdragon 845

5 posts / 0 new
Last post
SNPE cannot work with DSP on Snapdragon 845
1020258195
Join Date: 8 Jul 21
Posts: 8
Posted: Tue, 2021-10-19 20:08

Hi

I'm trying to run neural network with different runtimes on Snapdragon 845.

The snpe-net-run worked well on CPU and GPU.

But there are some errors when I used snpe-net-run on DSP.

There are the error info:

'''

error_code=910; error_message=DSP runtime system error. Failed to execute network.  Error code: -6, layer id: 0, op type: 0, extra: 0, backendErrorCode: 0.; error_component=DSP Runtime; line_no=612; thread_id=547949793296

'''

 

But snpe-platform-validator --runtime dsp worked will:

'''

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.
'''
 
How can I do to solve this problem?
Thanks for you help.
 
 
  • Up0
  • Down0
ryosuke.kamesawa1
Join Date: 8 Mar 21
Posts: 2
Posted: Mon, 2021-10-25 18:31

I found a DSP bug, showing the similar error message. In my case, setting all zero values to the input buffer caused the error, and DSP runtime works normally by setting a random image.

I hope this helps.

  • Up0
  • Down0
1020258195
Join Date: 8 Jul 21
Posts: 8
Posted: Tue, 2021-11-09 23:20

Thank you

My model has some error.

When I change another model, DSP works good.

  • Up0
  • Down0
SahilBandar
Join Date: 23 May 18
Posts: 37
Posted: Mon, 2021-11-15 06:48

Hi,

This error can cause if your model consist of the layer which can not be supported by SNPE for execute of DSP, and in this if you have loaded your model only for DSP accelerator.

Please use All available Hardware Accelerator (['AIP', 'DSP', 'GPU', CPU']) in sequence, which allows to run model on multiple accelerator and if layer not supported it will fall back to another Accelerator and executes your network properly.

Hope It's answered your question.

Regards,
Sahil Bandar

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

In my situation doing platform checking showed err like 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.
******************************************************************
my environment was:
qualcomm 865;
snpe-1.55.0;
ubuntu1804_qrb5165-rb5;
Any advices would be very appritiated.
thanks.
  • 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.