views:

118

answers:

1

Is it possible to have two or more linux host processes that can access the same device memory? I have two processes streaming high data rate between them and I don't want to bring the data back out of the GPU to the host in process A just to pass it to process B who will memcpy h2d back into the GPU.

Combining the multiple processes into a single process is not an option.

+1  A: 

My understanding of the CUDA APIs is that this cannot be done. The device pointers are relative to a given CUDA context, and there's no way to share those between processes.

Edric
moreover, cuda context is contained to individual threads.So you cannot even share GPU data between cpu threads.this is as far as I know
aaa
Not the answer I was hoping for, but the answer nonetheless
Mark Borgerding