I have split my big algorithm into 2 kernels kernel and kernel;
kernel updates outputbuffer(1280x720) and i read the outputbuffer by clEnqueueReadBuffer to "hostoutput"(1280x720).
Now I modify the "hostoutput" in application side then I want to send the modified "hostoutput" to kernel.here i just set kernel arg with outputbuffer.
1.should i create a new buffer object by clCreateBuffer again for kernel with hostoutput....flags is set with CL_MEM_READ_WRITE | CL_MEM_USE_HOST_PTR,
I thought there will be cache coherency between "hostoutput" and opencl device outputbuffer always till buffer release.