Repository navigation
UCT/CUDA/CUDA_IPC: Unmap memhandle mapped at rkey unpack & rkey ptr. - #11288
Merged
rakhmets merged 17 commits intoAug 4, 2026
Merged
Conversation
rakhmets
force-pushed
the
topic/uct-cuda-ipc-destroy-rkey
branch
2 times, most recently
from
March 23, 2026 15:32
93e5320 to
373daae
Compare
yosefe
previously requested changes
Mar 24, 2026
rakhmets
commented
Mar 24, 2026
rakhmets
marked this pull request as draft
March 24, 2026 17:30
Contributor
Author
rakhmets
force-pushed
the
topic/uct-cuda-ipc-destroy-rkey
branch
7 times, most recently
from
March 31, 2026 11:29
90d3956 to
3dffc60
Compare
rakhmets
marked this pull request as ready for review
March 31, 2026 11:35
Contributor
Author
rakhmets
force-pushed
the
topic/uct-cuda-ipc-destroy-rkey
branch
from
March 31, 2026 14:17
3dffc60 to
dcb2923
Compare
rakhmets
force-pushed
the
topic/uct-cuda-ipc-destroy-rkey
branch
from
March 31, 2026 14:20
dcb2923 to
01eca31
Compare
Artemy-Mellanox
previously approved these changes
Apr 9, 2026
ofirfarjun7
reviewed
Apr 9, 2026
ofirfarjun7
previously approved these changes
Apr 9, 2026
yosefe
reviewed
Apr 10, 2026
yosefe
left a comment
Member
There was a problem hiding this comment.
does this PR solve the leak when IPC cache is enabled (which is the default)?
Contributor
Author
No, it does not. This only solves when cache is disabled in order not to break the existing default behavior. |
rakhmets
dismissed stale reviews from ofirfarjun7 and Artemy-Mellanox
via
April 10, 2026 13:50
06e57c8
rakhmets
force-pushed
the
topic/uct-cuda-ipc-destroy-rkey
branch
from
June 30, 2026 14:30
dfc13f1 to
eb6bb06
Compare
rakhmets
marked this pull request as draft
June 30, 2026 14:30
rakhmets
marked this pull request as ready for review
July 7, 2026 13:34
amastbaum
reviewed
Jul 22, 2026
amastbaum
approved these changes
Jul 23, 2026
ofirfarjun7
approved these changes
Aug 3, 2026
This was referenced Aug 14, 2026
michal-shalev
added a commit
to michal-shalev/ucx
that referenced
this pull request
Aug 19, 2026
This was referenced Oct 23, 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?
Unregistered the CUDA IPC memory handle that was registered when unpacking the remote memory key and/or getting local pointer to remote memory.
Why?
CUDA IPC component does peer reachability check when unpacking the remote memory key. At the first reachability check it opens an inter process memory handle exported from another process. The component also may open an inter process memory handle exported from another process at getting local pointer to remote memory. If this handle is not closed, then the memory on the remote side cannot be released.