Forums - AIP runtime error

8 posts / 0 new
Last post
AIP runtime error
ek9852
Join Date: 4 Feb 17
Posts: 6
Posted: Sun, 2020-06-14 17:32
Using stock build snpe-platform-validator 1.39.1 version.
Hardware : Qualcomm Technologies, Inc SM8150
Samsung Galaxy Fold US version
All those path in ADSP_LIBRARY_PATH are exist and are readable.
DSP/CPU/GPU runtime are working fine. but not AIP.
 
export ADSP_LIBRARY_PATH="/data/local/tmp;/system/lib/rfsa/adsp;/vendor/lib/rfsa/adsp;/vendor/dsp"                                                                  <
 
./snpe-platform-validator -runtime aip   --test                                                                                            
PF_VALIDATOR: DEBUG: Calling PlatformValidator->setRuntime
PF_VALIDATOR: DEBUG: CPU side validation passed.
 
PF_VALIDATOR: DEBUG: starting calculator test
PF_VALIDATOR: DEBUG: Successfully loaded DSP library - 'libcalculator_domains.so'.  Setting up pointers.
PF_VALIDATOR: DEBUG: Success in executing the sum function
NPU User Driver: npu_read_info 0
PF_VALIDATOR: DEBUG: Calling PlatformValidator->IsRuntimeAvailable
Runtime AIP Prerequisites: Present.
PF_VALIDATOR: DEBUG: Calling PlatformValidator->RuntimeCheck
PF_VALIDATOR: DEBUG: Testing for the support of AIP runtime.
Translating kernel ioctl error 25 to npu sts: -1000
NPU User Driver: npu_read_info 0
NPU driver built on: May 15 2020 13:59:30
Metadata version: 2.8.0
NNC Revision: 786dd2a
NNC Branch: npu-nnc
NNC Timestamp: Fri Aug 16 14:37:15 2019
NNC Built On: 2019-08-16T15:28:15
ParseNpuMetaBufferDescriptor layer: [0] -> LAYER_TYPE_PARAM_IN_BUF[0] - [0x00000000 - 64]
ParseNpuMetaBufferDescriptor layer: [0] -> LAYER_TYPE_PARAM_OUT_BUF[0] - [0x00011000 - 3360]
npu_load_network(): perf mode = 0 flags = 0x0
* NPU_Stats: npu_load_network(): NPU + kernel : 289.17 ms
npu_load_network failed
* NPU_Stats: npu_load_network(): 290.50 ms
PF_VALIDATOR: ERROR: The SNPE AIP runtime is not able to load network. return_val: 10001
Unit Test on the runtime AIP: Failed.
SNPE is NOT supported for runtime AIP on the device.
 
  • Up0
  • Down0
wangft0326
Join Date: 16 Sep 19
Posts: 3
Posted: Wed, 2021-05-19 02:17

HI, I also got same error in the 865 Linux. are you solve the question ?  

  • Up0
  • Down0
icarry
Join Date: 11 Oct 21
Posts: 1
Posted: Tue, 2021-10-19 03:28

same problem, please help.

  • Up0
  • Down0
iamjianliu
Join Date: 24 Oct 21
Posts: 9
Posted: Thu, 2021-12-16 00:44
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 17:08

Dear customer,

What's version SNPE you've used?

Regarding the SNPE AIP runtime, you can ensure the following checklist.

1. quantized model is needed, such as 8bits and 16bits.

2. enable the conversion or quantization debug options in SNPE converter and quantization flow.

SNPE AIP will check the ops supported list to make sure the converting model is matched to requirements.

Or you  can share the model to us if you have checked above-mentioned.

BR.

Wei

  • Up0
  • Down0
Sreenivas
Join Date: 2 Feb 22
Posts: 2
Posted: Tue, 2022-04-26 04:31

I am facing a similar issue, can you please share how this got resolved

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.

  • Up0
  • Down0
bernicerossen
Join Date: 27 Apr 22
Posts: 10
Posted: Wed, 2022-04-27 10:02

facing same issue, is it resolved?

  • Up0
  • Down0
Sreenivas
Join Date: 2 Feb 22
Posts: 2
Posted: Sun, 2022-05-22 21:14

We are not using AIP, this error is encountered while using DSP runtime on snpe-net-run/ snpe-platform-validator. Working with Qualcomm, seems there is an issue there.

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