Forums - Snapdragon 888 -DSP runtime is not available on this platform

2 posts / 0 new
Last post
Snapdragon 888 -DSP runtime is not available on this platform
lior.kadoch
Join Date: 21 Dec 21
Posts: 3
Posted: Tue, 2022-02-01 23:18

I am triying to use the DSP hardware for inference using the snpe-net-run exec.

My hardware is the Snapdragon 888 Mobile Hardware Development Kit. However when running snpe-net-run we get the following error:

```

$ snpe-net-run --container model_quant.dlc --input_list random_files_list.txt --output_dir output --use_dsp
 
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=409; thread_id=496697900288; error_component=Host Runtime; line_no=265; thread_id=509381006584

```

I used the snpe-platform-validator to validate that the DSP hardware is indeed available:

```

$ ../../snpeexample/aarch64-android-clang6.0/bin/snpe-platform-validator --runtime all
WARNING: SNPE AIP runtime not available on this SoC
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
PF_VALIDATOR: DEBUG: Calling PlatformValidator->RuntimeCheck
PF_VALIDATOR: DEBUG: Building and running a simple Vector addition gpu program.
Unit Test on the runtime GPU: Passed.
SNPE is supported for runtime GPU on the device.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable
Runtime GPU Prerequisites: Present.
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.
Skipping checks for AIP runtime.

```

Is there a special setup required for this kind of development board? BTW CPU and GPU runtimes work properly.

thanks

  • Up0
  • Down0
lior.kadoch
Join Date: 21 Dec 21
Posts: 3
Posted: Wed, 2022-02-02 02:48

Apperently the DSP system files could be access only with root permission.

Wrapping the command with `su 0` works as follow:

$ su 0 snpe-net-run --container model_quant.dlc --input_list random_files_list.txt --output_dir output --use_dsp
 
Unfortunately some great tools like the snpe_bench.py use as `sh` hardcoded and I can't see if it is possible to run the commands as root.
Is there an option to run snpe_bench.py as root, or somehow make the DSP system files accessable to non root?
  • 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.