Forums - SNPE DSP runtime not working on the QCS610

2 posts / 0 new
Last post
SNPE DSP runtime not working on the QCS610
pib1ti
Join Date: 21 Oct 22
Posts: 2
Posted: Thu, 2023-08-24 03:09

Hi, using SNPE 2.13.0.230730 on the QCS610 (thundercomm C610/C410 Open Kit) I am having issues getting the dsp runtime to work.

More context:
- uname output: `Linux qcs610-odk-64 5.4.210-perf #1 SMP PREEMPT Thu Jun 15 00:15:26 CST 2023 aarch64 GNU/Linux`

- snpe-platform-validator --runtime dsp             

PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
PF_VALIDATOR: DEBUG: Calling PlatformValidator->RuntimeCheck
PF_VALIDATOR: DEBUG: Setting up QnnBackend  
/prj/qct/webtech_hyd/pcgbait/projects/zsnpe_waipio/avante-tools/prebuilt/dsp/hexagon-sdk-4.1.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:38:dummy call to rpcmem_init, rpcmem APIs will be used from libxdsprpc
DspTransport.openSession qnn_open failed, 0x80000453       
IDspTransport: Unknown rpc status 0x80000453    
DspTransport failed,cannot open session, error 0xffffffff
DspTransport.openSession qnn_open failed, 0x80000453 
IDspTransport: Unknown rpc status 0x80000453                                                             
DspTransport failed,cannot open session, error 0xffffffff                                       
PF_VALIDATOR: ERROR: Snpe-QNN backend initialization failed      
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.
- SNPE version : 2.13.0.230730
- Current tested toolchain: aarch64-oe-linux-gcc9.3
- DSP Hexagon Arch (as recommended in the docs): V66
- ADSP_LIBRARY_PATH : /data/local/tmp/snpeexample/dsp/lib;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp
- An ls of that path has the two following files: libCalculator_skel.so  libSnpeDspV66Skel.so
- An ls of the /data/local/tmp/snpeexample/$SNPE_TARGET_ARCH/lib
 
libPlatformValidatorShared.so   libSnpeHtpV68Stub.so
libSNPE.so                      libSnpeHtpV73Stub.so
libSnpeDspV65Stub.so            libcalculator.so
libSnpeDspV66Stub.so            libcalculator_htp.so
libSnpeHta.so                   libhta_hexagon_runtime_snpe.so
 
 Same happens when I try to run a network with snpe-net-run, with the output:
 
/data/local/tmp/vgg # snpe-net-run --input_list raw_list.txt --container vgg16.d                                                                                                                                   
lc --output_dir ./output/ --use_dsp                                                                                                                                                                                
/prj/qct/webtech_hyd/pcgbait/projects/zsnpe_waipio/avante-tools/prebuilt/dsp/hexagon-sdk-4.1.0/ipc/fastrpc/rpcmem/src/rpcmem_android.c:38:dummy call to rpcmem_init, rpcmem APIs will be used from libxdsprpc      
DspTransport.openSession qnn_open failed, 0x80000453                                                                                                                                                               
IDspTransport: Unknown rpc status 0x80000453                                                                                                                                                                       
DspTransport failed,cannot open session, error 0xffffffff                                                                                                                                                          
DspTransport.openSession qnn_open failed, 0x80000453                                                                                                                                                               
IDspTransport: Unknown rpc status 0x80000453                                                                                                                                                                       
DspTransport failed,cannot open session, error 0xffffffff                                                                                                                                                          
                                                                                                                                                                                                                   
The selected runtime is not available on this platform. Continue anyway to observe the failure at network creation time.                                                                                           
error_code=1200; error_message=libstd error. QnnBackend_Create failed: 4000; error_component=Dependent library; line_no=1754; thread_id=547904000016                                                               
DspTransport.openSession qnn_open failed, 0x80000453                                                                                                                                                               
IDspTransport: Unknown rpc status 0x80000453                                                                                                                                                                       
DspTransport failed,cannot open session, error 0xffffffff                                                                                                                                                          
DspTransport.openSession qnn_open failed, 0x80000453                                                                                                                                                               
IDspTransport: Unknown rpc status 0x80000453                                                                                                                                                                       
DspTransport failed,cannot open session, error 0xffffffff                                                                                                                                                          
error_code=1002; error_message=Layer parameter value is invalid. error_code=1002; error_message=Layer parameter value is invalid. No backend could validate Op=vgg0_conv0_fwd Type=Conv2d error code=3110; error_co
mponent=Model Validation; line_no=767; thread_id=547901577808; error_component=Model Validation; line_no=273; thread_id=547904000016
 
 
  • Up0
  • Down0
yunxqin
Join Date: 2 Mar 23
Posts: 44
Posted: Sat, 2023-08-26 18:09

Dear developer,

You can remount the device and run as root and then test again.

BR.

Yunxiang

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