I have written a code for the Convolution of image using API's clCreateImage2D for creating space,clEnqueueWriteImage to write to the device and read_imageui for reading the image in a kernel and write_imageui for writing the image back to the host.
Now i want to use the result of the convolution kernel which is pointing to a buffer in another kernel argument.Without moving the result back to host and forth to the device.Is this possible.
If the result is moved back and forth...i think it will be expensive.
Any help in this regards will be invaluable.