TL/UCP: use memcpy instead of sendrecv in agv#1255
Open
Sergei-Lebedev wants to merge 1 commit intoopenucx:masterfrom
Open
TL/UCP: use memcpy instead of sendrecv in agv#1255Sergei-Lebedev wants to merge 1 commit intoopenucx:masterfrom
Sergei-Lebedev wants to merge 1 commit intoopenucx:masterfrom
Conversation
Contributor
|
| Filename | Overview |
|---|---|
| src/components/tl/ucp/allgatherv/allgatherv_ring.c | Replaced inefficient UCP self-transport sendrecv with direct memcpy for CUDA buffers, adjusted ring algorithm loop bounds and indices accordingly |
wfaderhold21
approved these changes
Jan 14, 2026
| data_size = ucc_coll_args_get_count( | ||
| args, args->dst.info_v.counts, grank) * | ||
| rdt_size; | ||
| status = ucc_mc_memcpy( |
Collaborator
There was a problem hiding this comment.
LGTM! question though: would ucc_mc_memcpy potentially cause a deadlock if using cuda buffers for a scenario of NCCL + UCC? should this be a local copy instead?
janjust
approved these changes
Jan 17, 2026
Collaborator
|
/build |
1 similar comment
Collaborator
|
/build |
89eb485 to
b5282de
Compare
Collaborator
|
/build |
1 similar comment
Collaborator
|
/build |
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
Use ucc_mc_memcpy instead of sendrecv in allgatherv ring
Why ?
UCP doesn't support efficient copy of CUDA buffers in self transport. It does it through host staging buffer