Forums - failed to run Inception_v3 tutorial on DSP

5 posts / 0 new
Last post
failed to run Inception_v3 tutorial on DSP
493744520
Join Date: 27 Feb 22
Posts: 1
Posted: Tue, 2022-03-15 05:26

We tried to run the inception_v3 tutorial on OnePlus 8T. The following command is used:

snpe-net-run --container inception_v3.dlc --input_list target_raw_list.txt --use_dsp (or --use_gpu).

It works well when we tried --use_gpu option. But it failed to run in the mode --use_dsp. It shows "Aborted".

Note: "/system/vendor/lib/rfsa/adsp" can be found on OnePlus 8T. But "/system/lib/rfsa/adsp" and "/dsp" cannot be found on this system.

Is dsp supported on OnePlus8T where Snapdragon 865 is used. If it is supported, how should we make it work?

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Thu, 2022-03-31 01:30

Dear customer,

Related SNPE skel libs will port into /vendor/lib/rfsa/adsp on target. Also, DSP only supported fixed point tensor of model to execute. You need to quantize the model with command of snpe-dlc-quantize.

BR.

Wei

  • Up0
  • Down0
v.bathini
Join Date: 27 Feb 22
Posts: 11
Posted: Fri, 2022-04-01 03:21

Hi,

Can you provide the commands or links which you are following. It will be helpful to reslove errors 

  • Up0
  • Down0
897793128
Join Date: 11 Jul 22
Posts: 1
Posted: Sun, 2022-11-06 01:56

I have quantizee the model with command of snpe-dlc-quantize, and run snpe-net-run --container inception_v3_quantized.dlc --input_list target_raw_list.txt on OnePlus 8T,But it also failed to run in the mode --use_dsp. It shows "Aborted". because "/system/lib/rfsa/adsp" and "/dsp" cannot be found on this system??? and how can I solve this problem???

  • Up0
  • Down0
SahilBandar
Join Date: 23 May 18
Posts: 37
Posted: Tue, 2022-11-08 10:11

Hi 493744520,

If you are trying to build the android app for inferencing, Please make sure that you have followed the guide given on this page.

Snapdragon Neural Processing Engine SDK: DSP Runtime Environment (qualcomm.com)
 

As mentioned in Document, make sure that you have followed below step.
 
For Android APKs

ADSP_LIBRARY_PATH must be set for Android APKs as well, and it cannot be done using an "export" command. It must be done within code running in the APK.

The SNPE Android Java APIs automatically sets the ADSP_LIBRARY_PATH. The supplied SNPE Java AAR library automatically sets up the DSP environment for your Android application.

Android applications that do not use the SNPE Java AAR must set the ADSP_LIBRARY_PATH explicitly in native code. An example is provided below.

bool SetAdspLibraryPath(std::string nativeLibPath) {
std::stringstream path;
path << nativeLibPath << ";/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp";
 
return setenv("ADSP_LIBRARY_PATH", path.str().c_str(), 1 /*override*/) == 0;
}

Regards,
Sahil Bandar

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