I've just discovered a new level of debugging problems. OpenCL pointer issues. The only feedback you get is crashes in the driver and oblique OPENCL_OUT_OF_RESOURCES error message.
Found the problem. I was passing the dimensions in the wrong order to the previous kernel.
Found the problem. I was passing the dimensions in the wrong order to the previous kernel.