It's happening some strange thing.
I give up honestly, i really don't know what's happening.
For instance, my code works fine, so i modified a constant (#define) that is in a .h file that my kernel calls. The kernel run with old value of constant (the old execution) and don't update inside the code and show the old results.
And the big problem is that If i make any alteration in kernel code, a simple blank space, return execution error, either CL_OUT_OF_HOST_MEMORY or CL_INVALID_VALUE. And don't have any pattern that define what time one or other error happening.
I work with a GPU GTX560