Repository navigation
UCP/RMA: Add software emulation protocol for SGL put - #11577
Merged
Merged
Conversation
michal-shalev
force-pushed
the
sgl-put-offload-sw
branch
from
June 24, 2026 11:26
6ef2400 to
06e6716
Compare
michal-shalev
force-pushed
the
sgl-put-offload-sw
branch
from
June 24, 2026 13:19
06e6716 to
3b9b39d
Compare
Contributor
Author
|
Pending #11578 |
iyastreb
previously approved these changes
Jun 29, 2026
tvegas1
reviewed
Jun 29, 2026
tvegas1
left a comment
Contributor
There was a problem hiding this comment.
i just noticed that I forget to push this review made few days ago.
tomerg-nvidia
previously approved these changes
Jun 29, 2026
tvegas1
previously approved these changes
Jun 29, 2026
| } | ||
|
|
||
| ucp_proto_t ucp_put_sgl_offload_sw_proto = { | ||
| .name = "put/sgl/offload_sw", |
Contributor
There was a problem hiding this comment.
maybe put/sgl/sw, offload_sw seems a bit in between.
Contributor
Author
There was a problem hiding this comment.
Can we do the renaming in a follow-up PR to not block this one from merging?
Contributor
Author
guy-ealey-morag
previously approved these changes
Jun 29, 2026
iyastreb
previously approved these changes
Jun 30, 2026
brminich
reviewed
Jun 30, 2026
brminich
reviewed
Jun 30, 2026
| static void | ||
| ucp_proto_put_sgl_offload_sw_probe(const ucp_proto_init_params_t *init_params) | ||
| { | ||
| if (!init_params->worker->context->config.ext.proto_emulation_enable) { |
Contributor
There was a problem hiding this comment.
i think we do not need to respect this flag, because it manages ineficcient emulations without RDMA (am based tcp), but put_sgl still provides good perf.
the reason is that we want to use this env var in NIXL to disable tcp based emulations, but we do not want to disable this protocol
@tvegas1
michal-shalev
dismissed stale reviews from iyastreb, guy-ealey-morag, tvegas1, and tomerg-nvidia
via
June 30, 2026 13:52
76f374b
michal-shalev
requested review from
brminich,
guy-ealey-morag,
tomerg-nvidia and
tvegas1
June 30, 2026 13:52
tvegas1
approved these changes
Jun 30, 2026
| } | ||
|
|
||
| ucp_proto_t ucp_put_sgl_offload_sw_proto = { | ||
| .name = "put/sgl/offload_sw", |
brminich
approved these changes
Jun 30, 2026
michal-shalev
enabled auto-merge (squash)
June 30, 2026 14:30
tomerg-nvidia
approved these changes
Jul 1, 2026
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.
What?
Add a software-emulation PUT protocol for the SGL datatype (
put/sgl/offload_sw), gated byUCX_PROTO_EMULATION_ENABLE.Why?
The hardware SGL offload (
put/sgl/offload) requiresUCT_IFACE_FLAG_V2_PUT_SGL_ZCOPY, which is not always available. A fallback is needed so SGL puts still work when that capability is absent.How?
Lower-priority proto that sends one SGL element per
uct_ep_put_zcopyvia the multi framework, so it's selected only when the HW offload cap is absent.