mmap and pinned memory How to share a pinned buffer between several linux processes ?

Hello,

I have 2 processes (on linux). The first process can allocate pinned memory (cudahostalloc).

I would like to allow the second process to write directly on the pinned memory buffer allocated by the first process.

So, I need to map the address space of the pinned buffer on my second process address space. Nevertheless, it seems to be impossible to use shared memory (like mmap or shm_open) because mmap must allocate itself the memory to map (and cudahostalloc allocate the memory).

Do you now a solution to share a pinned buffer between several linux processes ?

Thanks

Matt

Dunno if you’re still interested in an answer for this problem.
Anyway, it seems that the new UVA functionality added in CUDA 4.0 will solve that problem for you.