5.7.2 Creating memory objects

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


  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 version101574_0302_00_en
Copyright © 2019 Arm Limited or its affiliates. All rights reserved.