Forums - GPU error on Android Phone

9 posts / 0 new
Last post
GPU error on Android Phone
npailoor3
Join Date: 28 Jul 17
Posts: 13
Posted: Wed, 2017-08-02 12:52

Hi,

I am trying to run the alexnet tutorial on my phone. It works successfully on CPU only but I'm getting the following error when running the GPU.

error_code=808; error_message=OpenCL check has failed. Failed to compile program.; error_component=GPU Runtime; line_no=393; thread_id=-1387444940; opencl_error=-44

The command I used was:snpe-net-run --container bvlc_alexnet.dlc --input_list target_raw_list.txt  --use_gpu

The phone is Motorolla G5 Plus and the Android version is 7.0

  • Up0
  • Down0
oferr Moderator
Profile picture
Join Date: 26 Jul 17
Location: San Diego
Posts: 22
Posted: Wed, 2017-08-02 14:35

Thank you. It looks like you're running Snapdragon NPE in a proper way.

In order to help us understand more on this failure, can you provide us with the results of running the OpenCL-Z App on your phone ? We're interested to see the information provided by it.

  • Up0
  • Down0
npailoor3
Join Date: 28 Jul 17
Posts: 13
Posted: Wed, 2017-08-02 19:29

Hi,

Sure. I have not used this app before. Do you want me to post the results of 'Export OpenCL info'?  Is there another feature I should post?

Thanks!

  • Up0
  • Down0
npailoor3
Join Date: 28 Jul 17
Posts: 13
Posted: Wed, 2017-08-02 19:44

Here are the results from export opencl info: https://pastebin.com/XYbaktFe

  • Up0
  • Down0
oferr Moderator
Profile picture
Join Date: 26 Jul 17
Location: San Diego
Posts: 22
Posted: Wed, 2017-08-02 23:47

Thanks a lot for running the tool and providing the informatio.

We're checking internally, and will update you as we have some insights.

  • Up0
  • Down0
npailoor3
Join Date: 28 Jul 17
Posts: 13
Posted: Thu, 2017-08-03 10:27

Thanks Ofer!

  • Up0
  • Down0
oferr Moderator
Profile picture
Join Date: 26 Jul 17
Location: San Diego
Posts: 22
Posted: Thu, 2017-08-03 23:02

Thank you for your patience.

The SDK comes with two SNPE libraries : libSNPE.so and libSNPE_g.so. The second one is a GPU-only libray. Can you test it on your device, and see if you're also getting compilation error ?

  • Up0
  • Down0
npailoor3
Join Date: 28 Jul 17
Posts: 13
Posted: Fri, 2017-08-04 07:46

Hi Ofer,

 

I forgot to mention that I had tried that already and I still got the compilation error. I tested it again and it still threw the error.

 

Thanks

 

  • Up0
  • Down0
oferr Moderator
Profile picture
Join Date: 26 Jul 17
Location: San Diego
Posts: 22
Posted: Fri, 2017-08-04 09:36

Thanks for doing this experiment. Are you getting exactly the same error message ? if not, can you provide both errors from each library ?

Regarding the phone, there are a few sub-versions of G5 plus (XT1684 (Single SIM); XT1685 (Dual SIM); XT1687 (USA)). Which one are you using ?

Thanks.

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