I wrote code to convolve the image using the clCreateImage2D API to create space, clEnqueueWriteImage to write to the device, and read_imageui to read the image in the kernel, and write_imageui to write the image back to the host.
Now I want to use a convolution kernel result that points to a buffer in another kernel argument. Without transferring the result back to the host and forward to the device. It is possible.
If the result moves back and forth ... I think it will be expensive.
Any help in this regard would be invaluable.
source share