Forums - dsp is not available when i ran snape_net_run

5 posts / 0 new
Last post
dsp is not available when i ran snape_net_run
932157916
Join Date: 30 Nov 21
Posts: 2
Posted: Tue, 2021-11-30 03:47
Hi,
 
when i ran snpe-net-run ... --use_dsp .. on my phone, get the
 
'
 
The selected runtime is not available on this platform. Continue anyway to observe the failure at network creation time.
 
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=391; thread_id=481539136768; error_component=Host Runtime; line_no=262; thread_id=483783648504
 
'
 
 
but it would return true on CPU/GPU
 
 
Does anyone has the same issue with DSP usage?
  • Up0
  • Down0
zhiguol
Join Date: 16 Dec 19
Posts: 25
Posted: Wed, 2021-12-01 00:22

Dear customer, 

What's your device to test?

Thanks.

  • Up0
  • Down0
iamjianliu
Join Date: 24 Oct 21
Posts: 9
Posted: Thu, 2021-12-16 00:17
Hi, i also met err runing model on dsp.
While 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 01:56

Dear customer,

The tools of snpe-platform-validator was run on devices, not any host dependency. I checked the SNPE 1.55.0 with tool of snpe-platform-validator on device and can get the following messages.

------------------Executing model on snpe-validator...
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: UnsignedPD is supported.
PF_VALIDATOR: DEBUG: CPU side validation passed.
 
PF_VALIDATOR: DEBUG: starting calculator test
PF_VALIDATOR: DEBUG: Loading HTP stub: libcalculator_htp.so
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libcalculator_htp.so'.  Setting up pointers.
PF_VALIDATOR: DEBUG: Success in executing the sum function
Unit Test on the runtime DSP: Passed.
SNPE is 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 HTP stub: libcalculator_htp.so
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libcalculator_htp.so'.  Setting up pointers.
PF_VALIDATOR: DEBUG: Success in executing the sum function
Runtime DSP Prerequisites: Present.
 
BR.
Wei
  • Up0
  • Down0
msaponja
Join Date: 15 Mar 22
Posts: 6
Posted: Mon, 2022-03-21 06:07

Hello,

I ran into the same issue on QRB5165-RB5 with the latest snpe-1.60 (I also tried with 1.59) on Ubuntu 18.04.

If I run `snpe-net-run ... --use_dsp`, I get the same error:

The selected runtime is not available on this platform. Continue anyway to observe the failure at network creation time.
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=412; thread_id=547737010544; error_component=Host Runtime; line_no=267; thread_id=547751890960

When I run `snpe-platform-validator --dsp`, I was getting the same error as in https://developer.qualcomm.com/comment/19009#comment-19009.
After I installed Hexagon SDK as suggested https://developer.qualcomm.com/comment/17955#comment-17955 and run `snpe-net-run ... --use_dsp` I don't get any ERROR, but 'DlSystem::RuntimeException':

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: UnsignedPD is supported.
terminate called after throwing an instance of 'DlSystem::RuntimeException'
  what():  
Aborted
 

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