Hi, I am not able to solve an issue regarding opencl.
My program flow is something like this:
I MUST put initialization and destroy steps inside the loop. After a number of correct iterations , it crashes giving CL_OUT_OF_HOST_MEMORY error and I am not able to understand why.
I believe I destroy all resources. Following is the code