After months i discovered a bug into NVidia boards.

When i do any change in kernel, -30 INVALID_VALUE error or CL_OUT_OF_HOST_MEMORY error occurs. But, this problem is not of my code, i don't know why run don't update either bitstream that is send for GPU or same GPU memory.

Anyone knows a command outside kernel and inside kernel that i can use to free memory?

Very thanks,