Any idea for the first problem? Is a bad kernel execution can corrupt the command queue and return CL_INVALID_COMMAND_QUEUE when we use it after? http://methoo.com