Hi, I think I have discovered something really weired:

I'm running OpenCL 1.1 on OSX 10.7 Lion, and trying to use a pre-compiled kernel using the "clCreateProgramWithBinary" function.
According to the reference, (http://www.khronos.org/registry/cl/sdk/ ... inary.html)
the 5th argument "binaries" should be an array of pointers to the contents of the binary, but it seems that the Apple's implementation is different:
"binaries" is an array of the file paths of the pre-compiled binaries.

Actually, Apple's sample code "Offline Compilation Using the OpenCL Compiler" is calling clCreateProgramWithBinary with file paths. Like this:

Code :
size_t len = strlen(file_path);
program = clCreateProgramWithBinary(context, 1, &device, &len, (const unsigned char**)&file_path, NULL, &err);

Any ideas what is going on?