5.7.2 Creating memory objects

When you have created and registered your kernels, send the program data to the kernels.

Procedure

  1. Package the data in a memory object.
  2. Associate the memory object with the kernel.
    These are the types of memory objects:
    Buffer objects
    Simple blocks of memory.
    Image objects
    These are structures specifically for representing 2D or 3D images. These are opaque structures. This means that you cannot see the implementation details of these structures.
    To create buffer objects, use the clCreateBuffer() function.
    To create image objects, use the clCreateImage() function.
Non-ConfidentialPDF file icon PDF versionARM 100614_0300_00_en
Copyright © 2012, 2013, 2015, 2016 ARM. All rights reserved.