Skip to content

ch4/ofi: Register HIP device memory as FI_HMEM_ROCR - #7990

Merged
hzhou merged 1 commit into
pmodels:mainfrom
raffenet:ofi-rocr
Oct 3, 2026
Merged

hzhou merged 1 commit into
pmodels:mainfrom
raffenet:ofi-rocr

Conversation

@raffenet

@raffenet raffenet commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request Description

MPIDI_OFI_register_memory() set the memory interface only for CUDA and ZE. Pass FI_HMEM_ROCR and the device id for HIP builds. The device is set through fi_mr_attr.device.rocr, which libfabric added in 2.5, so the ROCR path is compiled only against libfabric 2.5 or later.

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

@hzhou hzhou 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

MPIDI_OFI_register_memory() set the memory interface only for CUDA and
ZE. Pass FI_HMEM_ROCR and the device id for HIP builds.  The device is
set through fi_mr_attr.device.rocr, which libfabric added in 2.5, so
the ROCR path is compiled only against libfabric 2.5 or later.
@hzhou
hzhou merged commit 8d7aaf3 into pmodels:main Oct 3, 2026
6 checks passed
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