Skip to content

WIP: Add IPC pool sharing example#2230

Draft
bdice wants to merge 1 commit into
rapidsai:mainfrom
bdice:add-ipc-pool-sharing-example
Draft

WIP: Add IPC pool sharing example#2230
bdice wants to merge 1 commit into
rapidsai:mainfrom
bdice:add-ipc-pool-sharing-example

Conversation

@bdice
Copy link
Copy Markdown
Collaborator

@bdice bdice commented Jan 27, 2026

Description

WIP: Needs self-review, just opening this to track progress so far.

Add a new example demonstrating CUDA IPC memory pool sharing using RMM's cuda_async_memory_resource. The example shows how to:

  • Create an IPC-enabled memory pool with posix_file_descriptor handle type
  • Export pool handle and pointer metadata via Unix domain socket
  • Import the pool in another process using cuda_async_view_memory_resource
  • Perform multi-GPU peer-to-peer writes to shared memory

The example consists of two executables:

  • pool_exporter: Creates and exports a shareable memory pool
  • pool_importer: Imports the pool and performs parallel P2P writes

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Add a new example demonstrating CUDA IPC memory pool sharing using RMM's
cuda_async_memory_resource. The example shows how to:

- Create an IPC-enabled memory pool with posix_file_descriptor handle type
- Export pool handle and pointer metadata via Unix domain socket
- Import the pool in another process using cuda_async_view_memory_resource
- Perform multi-GPU peer-to-peer writes to shared memory

The example consists of two executables:
- pool_exporter: Creates and exports a shareable memory pool
- pool_importer: Imports the pool and performs parallel P2P writes
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jan 27, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant