Forums - Kernel Analyzer working?

4 posts / 0 new
Last post
Kernel Analyzer working?
qiang.li
Join Date: 29 Aug 16
Posts: 3
Posted: Fri, 2016-11-04 15:35

Does Kernel Analyzer working in Snapdragon Profiler 1.5.4 ?

Where is the document on the Kernel Analyzer?

  • Up0
  • Down0
eshaw Moderator
Join Date: 12 May 16
Location: San Diego
Posts: 142
Posted: Tue, 2016-11-08 13:29

Currently the kernel analyzer tool requires an OpenCL application to be running on the device while using the anaylzer. We plan to remove this limitation in a future release.

Eric

 

  • Up0
  • Down0
qiang.li
Join Date: 29 Aug 16
Posts: 3
Posted: Tue, 2016-11-29 08:57

Hi, Eric,

I have my OpenCL app running on the device and I can see the GPU utilization change when I run or stop my OpenCL app. The Kernel Analyzer still does not show anything when you click on compile.

Is there a way to make the tool spit out why it does not spit out anything or even an error message?

Thanks,

 

Qiang

  • Up0
  • Down0
Carlos Dominguez Moderator
Join Date: 27 Jul 15
Location: San Diego
Posts: 110
Posted: Fri, 2016-12-09 11:01

Is the app you are running a command line application or an apk? depending on what you are running there's a few considerations that you'll have to keep in mind:

For both APK and command line apps you will have to make sure you start your app after connecting to Snapdragon Profiler for the tool to bootstrap properly. 

APK: If the app only calls CL APIs on demand (perhaps at a push of a button) you will need to instrument it to continously call CL APIs so Snapdragon Profiler has continous connection with the app.

Command line: The requirements above apply but command line apps have a helper flag that can be set to signal the application to block execution until the app is captured. The byproduct of this flag is that it will maintain continous connection with Snapdragon Profiler and can be used to process your Kernel Analyzer calls. This flag can be set in the "Options" view in Snapdragon Profiler by setting "Options->OpenCL->EnableBlocking" to true.

I recommend as an interim solution to create a command line application that continuously calls "clGetPlatformIDs" on an infinite loop.

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