4 Replies Latest reply on Sep 20, 2011 5:27 PM by LeeHowes

    Cross process sharing

    Atmapuri

      Hi!

      Can I access the same buffer on the same device from two different processes provided that they can exchange information about the created contexts, kernels etc...?

      Thanks!
      Atmapuri

       

        • Cross process sharing
          arsenm

          I have also been wondering about this, particularly in regard to the CL-GL sharing. I would like to process on a GPU in one process, and let a separate process do drawing from that calculation at different times.

          • Cross process sharing
            genaganna

             

            Originally posted by: Atmapuri Hi!

            Can I access the same buffer on the same device from two different processes provided that they can exchange information about the created contexts, kernels etc...? Thanks! Atmapuri

            I guess it should work as long as you have information about context, kernels, memobjects. It would be great if you share your experience here.

              • Cross process sharing
                LeeHowes

                My inclination is to think it will not work. Two separate processes would not share memory, and hence would not share dll state. If they didn't share DLL state then you'd be sharing across two different instances of the runtime which wouldn't be maintaining any of the internal data structures you'd need.


                You can certainly do it across threads, or processes with a thread-like level of sharing.