Skip to content

Add SOMA IPC examples#481

Open
adeljo-amd wants to merge 1 commit into
ROCm:amd-stagingfrom
adeljo-amd:soma_ipc
Open

Add SOMA IPC examples#481
adeljo-amd wants to merge 1 commit into
ROCm:amd-stagingfrom
adeljo-amd:soma_ipc

Conversation

@adeljo-amd

@adeljo-amd adeljo-amd commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Motivation

Add the examples from the following snippets to rocm-examples https://rocm.docs.amd.com/projects/HIP/en/latest/how-to/hip_runtime_api/memory_management/stream_ordered_allocator.html#interprocess-memory-handling

These examples are not added to the CI for 2 reasons:

  • requires two processes to cooperate
  • requires amdgpu-dkms to be installed

Technical Details

Test Plan

Test Result

Added/Updated documentation?

  • Yes
  • No, does not apply to this PR.

Included Visual Studio files?

  • Yes
  • No, does not apply to this PR.

Submission Checklist

@zichguan-amd zichguan-amd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor details

Comment on lines +6 to +9
if ! lsmod | grep -q "^amdgpu"; then
echo "Skipping: amdgpu-dkms driver not loaded."
exit 77
fi

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason this is different than the device_pointer amdgpu check?

Comment on lines +46 to +47
constexpr const char* fifoPath = "/tmp/hip_ipc_devptr_fifo";
constexpr const char* doneFifoPath = "/tmp/hip_ipc_devptr_done_fifo";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not unlinked for cleanup, can we mirror shareable_handle on this?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants