PDA

View Full Version : Compile OpenCL code to binary



Rui
05-28-2010, 10:33 AM
Since there is a function clCreateProgramWithBinary, instead of compiling code on runtime, is it possible to compile OpenCL code to binary format, officially speaking?

dominik
05-28-2010, 12:05 PM
Check out clGetProgramInfo() with CL_PROGRAM_BINARY_SIZES and CL_PROGRAM_BINARIES (see Section 5.4.5 in the spec)

Rui
05-31-2010, 09:46 AM
Is there any example of this available?