CPU + GPU processing of same image

How to process an image using both CPU and GPU using OpenCL?

Like using CPU to process the lower half of an image and the GPU to process the top.

how to merge the buffers?
Sharing of buffers in different platforms,is it possible?

Thanks & Regards

How to process an image using both CPU and GPU using OpenCL?

check this line , i hope will helo
http://herox.net/blog/?p=52

When I tried it, it was pretty easy and well worth the effort.

If it’s working on CL_DEVICE_TYPE_GPU, the same code should work on the cpu if you specify CL_DEVICE_TYPE_CPU. Then make two contexts, two command queues, two programs, etc; just do everything twice, once for each. I read the data back to a big array in ram, so I just figure out the offset into that array when I read back the bottom half. I also send in a parameter so each kernel knows where it is. (I also do a 3-way, cpu+big gpu+little gpu, to try to get just a little more performance.)

What I don’t know about is how you could merge the CPU half of the data up onto the graphics card itself, to display with opengl, without having to copy the gpu’s data off and back on.