Results 1 to 3 of 3

Thread: CPU + GPU processing of same image

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    10

    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

  2. #2
    Junior Member
    Join Date
    Aug 2011
    Posts
    10

    Re: CPU + GPU processing of same image

    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

  3. #3

    Re: CPU + GPU processing of same image

    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.

Similar Threads

  1. Image Processing (GPGPU)
    By albus in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 2
    Last Post: 03-08-2011, 12:59 AM
  2. Looking for Simple Image Processing
    By wahabkotwal in forum OpenCL
    Replies: 2
    Last Post: 10-17-2010, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •