Shared OpenCL buffers between processes


Is there any way to share OpenCL buffers between processes, that is for instance:

  • allocate a buffer with clCreateBuffer with a memory region on the GPU

  • send the resulting cl_mem object to another process

  • use the cl_mem object from the second process to access the same memory region in the GPU.

Thanks in advance.

Stéphane Letz

There is no standard way to share data across different processes. The spec only covers multi-threaded applications.