unified-memory-framework icon indicating copy to clipboard operation
unified-memory-framework copied to clipboard

OS provider should support shared memory allocations

Open bratpiorka opened this issue 1 year ago • 1 comments

Rationale

OS Memory Provider should support shared memory allocations. This could be useful in scenarios, where there are two or more processes and the memory allocated in the first process is needed in the second process.

API Changes

To support shared memory, OS Memory Provider should accept new flag UMF_MEM_MAP_SHARED/PRIVATE. In case of SHARED allocations, mmap should use file descriptor got from memfd.

OS Memory Provider should also implement IPC API.

bratpiorka avatar Apr 12 '24 09:04 bratpiorka

draft PR with changes: https://github.com/oneapi-src/unified-memory-framework/pull/429

bratpiorka avatar Apr 12 '24 09:04 bratpiorka

closed by https://github.com/oneapi-src/unified-memory-framework/pull/429

bratpiorka avatar Jun 03 '24 08:06 bratpiorka