5.6 Building a program executable

When you have created a program object, you must build a program executable from the contents of the program object. Use the clBuildProgram() function to build your executable.

Compile all kernels in the program object:

err = clBuildProgram(program, 1, &device_id, "", NULL, NULL);
if (err != CL_SUCCESS)
       return 1;
Non-ConfidentialPDF file icon PDF version101574_0302_00_en
Copyright © 2019 Arm Limited or its affiliates. All rights reserved.