Forums - How to run udl code on GPU

4 posts / 0 new
Last post
How to run udl code on GPU
lewislyi
Join Date: 3 Jan 18
Posts: 8
Posted: Thu, 2018-02-08 22:58

Hello support:

I wrote udl code on OpenCL and intend to run it on GPU but I found setup() func was not executed and my udl callback returned false. 

Would you give me some examples on how to implement udl on GPU ?

Thank you for your support 

Lewis

  • Up0
  • Down0
lewislyi
Join Date: 3 Jan 18
Posts: 8
Posted: Fri, 2018-02-09 00:46

contructor of udl class is called, but setup func does not run during GPU runtime

  • Up0
  • Down0
lewislyi
Join Date: 3 Jan 18
Posts: 8
Posted: Fri, 2018-02-09 00:46

contructor of udl class is called, but setup func does not run during GPU runtime

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Tue, 2019-06-11 04:26

Hi,
kindly follow the instructions from SNPE Documents  to create a User Defined Layer (UDL).
To build the CPP application with UDL layer use " Building and Running on x86 Linux and Embedded Linux" section from this link.
The executable will be in <snpe_sdk>/examples/NativeCpp/UdlExample/obj/local/x86_64-linux-clang.

The below command will help you how to use different runtimes for executing the application,
 

$ ./snpe-net-run-udl --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.