Selecting Memory Options

You can change memory options of buffers, images or samplers using Kernel Development Framework. Refer to the relevant sections of this guide for guidelines on creating or editing variables.


You are not limited in selecting options. Avoid selecting the option combinations that are forbidden by the OpenCL™ 1.2 specification, otherwise you may encounter errors upon analysis.

To choose buffers and images memory options, do the following:

  1. Open the variable properties by right-clicking an image, buffer, or pipe variable in the Code Builder Variables view and selecting Edit Variable.
  2. Click the "..." button near the memory flags label to open the memory flags dialog.

    Memory flag selection options

  3. Select all the desired options and click OK.
For more complete information about compiler optimizations, see our Optimization Notice.