The following call fails with CL_INVALID_DEVICE:
cl_kernel kernel = <create kernel somehow>
0, // if device is specified, everything is fine
Even though associated program is build only for one device. Specifying device solves the probleb. Hope that helps.
Retrieving data ...