The feature for saving and loading final kernel binaries facilitates
CPU compile time saving. Intel® implementation of the existing OpenCL™
API for CPU is enhanced to retrieve and inject binaries of the programs
that are compiled and optimized for CPU. Namely, the binary string returned
by invoking clGetProgramInfo()
with parameter CL_PROGRAM_BINARIES
contains a target-specific compiled binary, after building the program
for CPU device. This binary is persistent, and you can save it to disk.
If you invoke clCreateProgramWithBinary()
with such binary,
it will be used without compiling the program.
Ensure that a correct binary is provided to clCreateProgramWithBinary()
.