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)
{
       Cleanup();
       return 1;
}
Non-ConfidentialPDF file icon PDF version101574_0301_00_en
Copyright © 2019 Arm Limited or its affiliates. All rights reserved.