5.7.1 Creating kernel objects

Call the clCreateKernel() function to create a single kernel object, or call the clCreateKernelsInProgram() function to create kernel objects for all the kernels in the OpenCL application.

For example:
//        Create OpenCL kernel

kernel = clCreateKernel(program, “<kernel_name>", NULL);
if (kernel == NULL)
       return 1;
Non-ConfidentialPDF file icon PDF versionARM 100614_0300_00_en
Copyright © 2012, 2013, 2015, 2016 ARM. All rights reserved.