Forums - snpe-net-run run time error on yocto

10 posts / 0 new
Last post
snpe-net-run run time error on yocto
jc
Join Date: 10 Apr 18
Posts: 4
Posted: Thu, 2018-05-10 00:53

Hi,

I got error message 'Invalid parameter in user config' when running snpe-net-run on S820 development board with qualcomm released yocto BSP.

Below is complete error message and some check point.

Can some give advice on this?

-------

prebuilt snpe-net-run and lib from arm-linux-gcc4.9sf

Error message: snpe-net-run --container /usr/data/alexnet.dlc --input_list /usr/data/image_list.txt --use_dsp --debug

 

The selected runtime is not available on this platform. Continue anyway to observe the failure at network creation time. error_code=101;error_message=Invalid parameter in user config. Attempted to set a neural network configuration option DSP that is not supported on this platform.; error_component=System Configuration; line_no=118; thread_id=3932061696

-------

Environment:

LD_LIBRARY_PATH='/usr/lib;/usr/lib/rfsa/adsp;/usr/lib64;/dsp'

/usr/lib/libadsprpc.so /usr/lib64/libadsprpc.so /libSNPE.so

ps -a|grep -i adsp

328 root 0:00 [irq/669-adsp]

330 root 0:00 [adsp]

2506 root 0:06 /usr/bin/adsprpcd

ls /dev/adsprpc-smd

/dev/adsprpc-smd

  • Up0
  • Down0
jihoonk
Profile picture
Join Date: 28 Jan 13
Location: Seoul
Posts: 55
Posted: Thu, 2018-05-10 02:46

Hi JC,

You should set ADSP_LIBRARY_PATH instead of LD_LIBRARY_PATH.

Thanks,

Jihoon

  • Up0
  • Down0
jc
Join Date: 10 Apr 18
Posts: 4
Posted: Thu, 2018-05-10 19:04

Hi, Jihoonk

Thanks for reply, I tried to set ADSP_LIBRARY_PATH but same error occurred.
Did I miss something?

# export ADSP_LIBRARY_PATH="/usr/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/usr/lib;/usr/lib64;/dsp"

  • Up0
  • Down0
jihoonk
Profile picture
Join Date: 28 Jan 13
Location: Seoul
Posts: 55
Posted: Thu, 2018-05-10 20:15

Hi JC,

It seems your ADSP_LIBRARY_PATH is missing the path which contains libsnpe_dsp_skel.so and libsnpe_dsp_v65_skel.so. You can get them in $SNPE_ROOT/lib/dsp/

Refer to following document:

https://developer.qualcomm.com/docs/snpe/dsp_runtime.html

Thanks,

Jihoon

  • Up0
  • Down0
jc
Join Date: 10 Apr 18
Posts: 4
Posted: Thu, 2018-05-10 20:59

Hi, jihoonk

Thanks, I did missing the libsnpe_dsp_skel.so on my device.
But same error after copy libsnpe_dsp_skel.so and libsnpe_dsp_v65_skel.so to device.
update PATH refer to dsp_runtime.html
---
ADSP_LIBRARY_PATH='/usr/lib;/usr/lib64;/usr/lib/rfsa/adsp;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp'

snpe lib path:
9268 ./usr/lib/libSNPE.so
652 ./usr/lib/libsnpe_dsp_skel.so
632 ./usr/lib/libsnpe_dsp_v65_skel.so

adsp lib path:
/usr/lib/rfsa/adsp/
/system/vendor/lib/rfsa/adsp/
/usr/lib/libadsp_default_listener.so
/usr/lib/libadsp_hvx_callback_skel.so
/usr/lib/libadsp_hvx_stub.so
/usr/lib/libadsprpc.so
/usr/lib64/libadsp_default_listener.so
/usr/lib64/libadsprpc.so

  • Up0
  • Down0
jesliger
Join Date: 6 Aug 13
Posts: 75
Posted: Fri, 2018-05-11 05:04

Yocto Linux is not a supported platform for DSP runtime at this time. 

  • Up0
  • Down0
jc
Join Date: 10 Apr 18
Posts: 4
Posted: Sun, 2018-05-13 18:49

Hi, jesliger

Thanks for the information.

Just for clarification, did you mean:
1. Currently snpe-net-run not support on yocto linux.
2. Currently DSP not support on yoctl linux.

If you mean situation 1., is there other tool to check if my device dsp function is workable?

Besides, which document can refer to DSP related support info?

  • Up0
  • Down0
Enrico Ros
Join Date: 14 Jul 17
Posts: 10
Posted: Tue, 2018-09-25 10:05

As of SNPE 1.19.2 (Sept 2018) it is now possible to run on DSP/Linux.

  • Up0
  • Down0
jontzbaker
Join Date: 2 Aug 18
Posts: 4
Posted: Mon, 2018-10-08 05:59

Enrico, it should be. But I have almost the same problem running SNPE 1.19.2.

The only meaningful difference is the line_no argument. I got line_no=143 and JC got line_no=118.

  • Up0
  • Down0
saddusalman37
Join Date: 20 Oct 18
Posts: 1
Posted: Sat, 2018-10-20 13:10

I’m trying to create a custom image for the AR7554 throught yocto so. I have got instructions from this website but still I havent got the solution for this. If anyone can help

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