Forums - SNPE-NET-RUN with mobilenet and GPU fails on linux

17 posts / 0 new
Last post
SNPE-NET-RUN with mobilenet and GPU fails on linux
gabaly
Join Date: 9 May 18
Posts: 5
Posted: Thu, 2018-09-27 11:41

HI,

I am trying to run mobilenet with --use_gpu option on the Snapdragon 820 chip with Debian stretch using SNPE-NET-RUN but it is giving me the 

following error:

       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 GPU that is not supported on this platform.; error_component=System Configuration; line_no=143; thread_id=547743469568

I get the same error when I use the --enable_cpu_fallback option as well, it works on CPU

can someone please explain what the problem is here ?

Thanks

  • Up0
  • Down0
ganesh.tata
Join Date: 4 Sep 18
Posts: 2
Posted: Sun, 2018-09-30 22:45

@gabaly Were you able to find any solution to this problem?

  • Up0
  • Down0
gabaly
Join Date: 9 May 18
Posts: 5
Posted: Mon, 2018-10-01 13:23

no, I am using the Inforce 6640 board, I am starting to think the problem is that SNPE is not detecting the hardware, so I am researching drivers for the GPU and the DSP. one driver I found was freedreno

  • Up0
  • Down0
gabaly
Join Date: 9 May 18
Posts: 5
Posted: Wed, 2018-10-03 11:33

I tried installing libopencl.so but still it didnt work, @ganesh.tata, which snapdragon are you using ?

  • Up0
  • Down0
ganesh.tata
Join Date: 4 Sep 18
Posts: 2
Posted: Wed, 2018-10-03 21:44

@gabaly 820. I think that we cannot leverage the Adreno GPU through linux.  When I try the clinfo cmdline tool to get info regarding the GPU on the device, it gives - "Number of platforms 0".  A similar issue that I had found - https://developer.qualcomm.com/forum/qdn-forums/software/snapdragon-neur...

But this wasn't of any help either.

  • Up0
  • Down0
gabaly
Join Date: 9 May 18
Posts: 5
Posted: Thu, 2018-10-04 11:01

no luck with the older versions of libOpenCL ?

  • Up0
  • Down0
jontzbaker
Join Date: 2 Aug 18
Posts: 4
Posted: Thu, 2018-10-04 11:33

bump

  • Up0
  • Down0
gabaly
Join Date: 9 May 18
Posts: 5
Posted: Thu, 2018-10-04 12:23

thanks @jontzbaker, did anyone explore the hetrogenous compute SDK ? could that be helpful ?

  • Up0
  • Down0
sarveshd
Join Date: 14 Feb 19
Posts: 4
Posted: Thu, 2019-03-07 12:18

Did you guys find any solution to this problem? How to make sure runtime DSP/GPU can be detected on linux? I m using 820 dev kit.

  • Up0
  • Down0
eric9
Join Date: 13 Mar 19
Posts: 2
Posted: Wed, 2019-04-10 18:19

Has anyone had any luck resolving this issue? I'm seeing the same issue running Debian Stretch on an IFC6640 board.

Thanks,

  • Up0
  • Down0
tonyruffalo3217
Join Date: 15 Apr 19
Posts: 1
Posted: Mon, 2019-04-15 02:46

no, i am the use of the Inforce 6640 board, i'm starting to suppose the problem is that SNPE isn't always detecting the hardware, so i am gaining knowledge of drivers for the GPU and the DSP. one driver i discovered become freedreno Tweakbox https://www.happywheels.vip/ https://vlc.onl/

/*-->*/ /*-->*/ /*-->*/

 

  • Up0
  • Down0
eric9
Join Date: 13 Mar 19
Posts: 2
Posted: Mon, 2019-04-15 09:38

I did some digging into the GPU drivers as well, and I've got some ideas on what the issue is, which may be wrong so please correct me if something is innaccurate. My thinking so far is that SNPE requires OpenCL to discover the Adreno, and Freedreno driver does not yet support OpenCL. Until Freedreno supports OpenCL, then we won't be able to run on the GPU on Debian. I tried installing OpenCL on the IFC6640 board and it didn't recognize that there were any GPUs available.

  • Up0
  • Down0
pgaston
Join Date: 29 Mar 19
Posts: 5
Posted: Fri, 2019-06-07 04:01

Any progress here?    I'm running an Intrinsyc FlightPro board with an 820.    I get the same behavior - snpe-net-run works fine with the cpu, but fails with the gpu.

> snpe-net-run --container bvlc_alexnet.dlc --input_list target_raw_list.txt --use_gpu 
The selected runtime is not available on this platform. Continue anyway to observe the failure at network creation time.
Aborted
 
 
 
  • Up0
  • Down0
farheenkhanmi4
Join Date: 3 Aug 20
Posts: 2
Posted: Mon, 2020-08-03 12:22

i'm starting to suppose the problem is that SNPE isn't always detecting the hardware, so i am gaining knowledge of drivers for the GPU and the DSP. 

  • Up0
  • Down0
pourpcxyz
Join Date: 30 Aug 20
Posts: 1
Posted: Sun, 2020-08-30 02:01

I have tried many times to fix the problem with SNPE but there is alwyas the ahdware related issue which is truley unable to fix wrt to that of the GUP and hadware issues. 

  • Up0
  • Down0
rajankarthik435
Join Date: 22 Sep 20
Posts: 1
Posted: Mon, 2020-10-12 03:14

My deduction  is that SNPE requires OpenCL to find the Adreno, and Freedreno driver doesn't yet uphold OpenCL. Until Freedreno upholds OpenCL, at that point we won't have the option to run on the GPU on Debian. 

 

  • Up0
  • Down0
farheenkhanmi4
Join Date: 3 Aug 20
Posts: 2
Posted: Thu, 2020-11-19 01:02

Anyone happy enough to fix this problem? I see the same problem with Debian Stretch on the IFC6640 card

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