Results 1 to 2 of 2


  1. #1
    Junior Member
    Join Date
    Mar 2010



    I read in the spec that the macro __EMBEDDED_PROFILE__ must be added to the language to do embedded profile
    where exactly in the .cl file does it need to be added?
    and what is the syntax?


  2. #2
    Senior Member
    Join Date
    Sep 2002
    Santa Clara


    The spec states "The __EMBEDDED_PROFILE__ macro is added to the language (refer to section 6.9). It will
    be the integer constant 1 for OpenCL devices that implement the embedded profile and is
    undefined otherwise."

    If __EMBEDDED_PROFILE__ is defined then this is an indicator that your kernels are executing on the embedded profile. This allows you to write profile-specific code i.e. code path that will be executed on the embedded profile another code path for the full profile. Note that the embedded profile is a proper subset of the full profile.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean