Forums - How to use DSP runtime on Snapdragon 855

3 posts / 0 new
Last post
How to use DSP runtime on Snapdragon 855
paulwang
Join Date: 2 Dec 21
Posts: 1
Posted: Fri, 2021-12-03 00:32

Dear Sir,

I am trying to use SNPE to do video super resolution on Snapdragon 855 devices (Xiaomi Mi9 and Samsung Galaxy S10). And now I have met two major issues. The version of SDK I am using is 1.55.0.

1. When I use CPU runtime, the engine build API will always return nullptr if I add the network resizing procedure from the following page before building. 

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

As for the video super resolution scenario, the input data size is changing from time to time, so the resizing is a must.

2. When I tried DSP runtime, the engine build also returns nullptr, and the always return false on Snapdragon 855 devices 

I follow all the the steps in https://developer.qualcomm.com/sites/default/files/docs/snpe/dsp_runtime... , and also set "unsignedPD:ON" into platform config before the buiding.

I am not sure if the reference guide is still valid now.

Looking forward to your reply.

Thanks a lot.

  • Up0
  • Down0
iamjianliu
Join Date: 24 Oct 21
Posts: 9
Posted: Thu, 2021-12-16 00:16
Hi, did you passed platform checking?
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: Mon, 2021-12-27 02:10

Dear customer,

Regarding the snpe-platform-validator, you need to run on device only, not any host or other client.

You can try the following commands to check the SPE validation.

adb -s $1 shell "cd ${TARGET_PATH} &&
                  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\" &&
                  ./snpe-platform-validator --runtime dsp"

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.