Forums - What does 'DANDROID_CL' mean?

2 posts / 0 new
Last post
What does 'DANDROID_CL' mean?
pvrtisrp
Join Date: 28 Sep 13
Posts: 47
Posted: Mon, 2013-10-07 02:48

I have a question:

What does 'DANDROID_CL' mean?

Why should we add 'LOCAL_CFLAGS += -DANDROID_CL' in our android.mk?

Thank you vey much!

 

  • Up0
  • Down0
khawkins Moderator
Join Date: 29 Nov 12
Location: San Diego, CA
Posts: 62
Posted: Mon, 2013-10-07 08:40

Hi,

The ANDROID_CL define is used by the SDK's sample framework. Specifically this define is used when building an app that uses both OpenGL ES and OpenCL and is meant to run on Android. You can see it being used in the Sample framework's FrmComputeGraphicsApplication.cpp file, line 126.

If you aren't using the Adreno SDK's sample framework in your own application, then you don't need this define.

Kevin

 

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