fix(kv-offload): support LLVM 22 RDMA bindings - #785
Draft
ClSlaid wants to merge 1 commit into
Draft
Conversation
ClSlaid
force-pushed
the
agent/fix-libclang22-bindgen
branch
from
July 29, 2026 16:22
508c9ea to
d6ebfa6
Compare
rdma-mummy-sys 0.2.4 uses bindgen 0.66, which emits opaque ibverbs structs with LLVM 22. Require 0.2.5, whose bindgen 0.72 update restores the generated fields. Add a compile regression test for representative ibv_context and ibv_mr fields.
ClSlaid
force-pushed
the
agent/fix-libclang22-bindgen
branch
from
July 30, 2026 03:42
d6ebfa6 to
eec486f
Compare
|
This pull request has been inactive for 14 days. It will be closed after another 30 days unless there is new activity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rdma-mummy-sys0.2.5 directly inopeninfer-kv-offload.The pinned
pegaflow-corerevision permits 0.2.4, so this requirementraises the resolver's minimum version.
Cargo.locktordma-mummy-sys0.2.5. Its bindgen update removesobsolete transitive dependencies from the lockfile.
ibv_context.opsandibv_mr.lkey.Motivation
With LLVM/libclang 22, bindgen 0.66 generates vendored rdma-core structs such
as
ibv_contextas opaque_addressshells.rdma-mummy-sys0.2.4 thenfails to compile when its wrapper accesses fields such as
ops,context,and
lkey.rdma-mummy-sys0.2.5 upgrades bindgen to 0.72.1 to support LLVM 22(upstream commit).
Impact
OpenInfer now builds when bindgen loads libclang 22, without overriding
LIBCLANG_PATHto select an older installation. RDMA runtime behavior isunchanged.
Validation
cargo fmt --checkenv -u LIBCLANG_PATH CUDA_HOME=/opt/cuda cargo check --release -p openinfer-serverenv -u LIBCLANG_PATH CUDA_HOME=/opt/cuda cargo test --release -p openinfer-kv-offload --test rdma_bindingsThe release check and regression test pass with libclang 22.