Skip to content

fix(ep): guard CXI libfabric include - #10

Merged
PanJason merged 1 commit into
mainfrom
compilation-fix
Jun 19, 2026
Merged

PanJason merged 1 commit into
mainfrom
compilation-fix

Conversation

@PanJason

@PanJason PanJason commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Guard the CXI-only rdma/fi_atomic.h include behind USE_LIBFABRIC_CXI.

Why

The upstream CXI PR currently fails the AMD/non-CXI build because
ep/src/cxi_transport.cpp includes a libfabric header unconditionally. On
machines without libfabric development headers, the generated
cxi_transport_hip.cpp fails with:

fatal error: rdma/fi_atomic.h: No such file or directory

cxi_transport.hpp already guards its libfabric headers behind
USE_LIBFABRIC_CXI; this applies the same rule to the atomic header in the
implementation file.

Validation

  • Ran clang-format on ep/src/cxi_transport.cpp.
  • Ran git diff --check.

@PanJason
PanJason merged commit 0baf3bf into main Jun 19, 2026
2 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.

1 participant