multiple kernel buffer issue

Discussion created by pavandsp on Mar 17, 2010
Latest reply on Mar 19, 2010 by gaurav.garg


I have split my big algorithm into 2 kernels kernel[0] and kernel[1];

kernel[0] 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[1].here i just set kernel[1] arg with outputbuffer.


1.should i create a new buffer object by clCreateBuffer again for kernel[1] 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.