Skip to content

[v5.0.x] btl,mtl/ofi: set device only flag#13752

Open
aingerson wants to merge 1 commit intoopen-mpi:v5.0.xfrom
aingerson:main
Open

[v5.0.x] btl,mtl/ofi: set device only flag#13752
aingerson wants to merge 1 commit intoopen-mpi:v5.0.xfrom
aingerson:main

Conversation

@aingerson
Copy link
Contributor

In OFI, the FI_HMEM_DEVICE_ONLY registration flag signals to the provider that the memory is only on the device and is not unified memory (which can migrate between the GPU and host). IPC is only usable with device only memory and is not valid for unified memory. Without this flag, providers cannot provide optimizations like IPC. Set the flag if the address was found to be non-unified memory. This enables IPC copies in OFI.

The flag is available starting in v1.13.0 so this adds a configure check to make sure we only use it if available.

This also includes an indentation fix and typos within the scope of the patch

In OFI, the FI_HMEM_DEVICE_ONLY registration flag signals to the
provider that the memory is only on the device and is not unified
memory (which can migrate between the GPU and host). IPC is only
usable with device only memory and is not valid for unified memory.
Without this flag, providers cannot provide optimizations like IPC.
Set the flag if the address was found to be non-unified memory.
This enables IPC copies in OFI.

The flag is available starting in v1.13.0 so this adds a configure
check to make sure we only use it if available.

This also includes an indentation fix and typos within the scope of
the patch

Signed-off-by: Zach Dworkin <zachary.dworkin@intel.com>
Signed-off-by: Alexia Ingerson <alexia.ingerson@intel.com>
@github-actions github-actions bot added this to the v5.0.10 milestone Feb 27, 2026
@aingerson
Copy link
Contributor Author

@angainor

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant