Any alteration in kernel CL_OUT_OF_HOST_MEMORY

Hi,

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,

It is evident that your kernel consumes too much private memory (too much temp variables for each work-item), try to reduce it and see what happen

Thanks for your help.