Results 1 to 2 of 2

Thread: Sharing Image Data between two processes

  1. #1
    Junior Member
    Join Date
    Dec 2009

    Sharing Image Data between two processes

    Here is my situation.
    1. Process A(cpp) operates a Image Pixel Data & performs various processing's & leaves the image on GPU
    2. Process B(say java/cpp) Needs to pick up this Image & Render it on Screen.

    Key Performance Criteria : Reading Image Back to CPU & Passing to Process B needs to be avoided.

    My Question:
    1. Is there any mechanism currently available to share texture/image pixel data across processes ?
    2. If not ? What would be the most optimized method the share the image without affecting the Performance criteria.

    The mechanisim can be OpenCL , OpenGL or CUDA.


  2. #2
    Senior Member
    Join Date
    Jul 2009
    Northern Europe

    Re: Sharing Image Data between two processes

    I am not aware of any way to share data between processess in OpenGL or CL. I would first try just reading the data back into host memory in a way that you can share with the other process via whatever standard memory sharing options you have on your system. My understanding is that the GL/CL environments are virtualized for each process, so there is no standard/supported/safe way to cross between them. Hopefully someone will correct me if I am wrong. (I don't know of any way to do this under CL, at any rate.)

Similar Threads

  1. Sharing surfaces across processes
    By amendola in forum EGL
    Replies: 2
    Last Post: 06-10-2009, 04:25 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
Proudly hosted by Digital Ocean