When i run my code in CPU no errors appears, but when i put in a GTX560 NVIDIA GPU CL_OUT_OF_HOST_MEMORY began occur. A lot of times I don't know how i succeed to solve and the code run. But, any alteration in kernel code, a simple alteration how create a variable, CL_OUT_OF_HOST_MEMORY occurs.

Thanks for any help,