Repository navigation
UCT/CUDA/CUDA_IPC: Tightened the check of single process in unmap. - #11291
Merged
Merged
Conversation
rakhmets
force-pushed
the
topic/cuda-ipc-check-pid
branch
from
March 24, 2026 13:06
92407f7 to
9831692
Compare
tvegas1
previously approved these changes
Mar 24, 2026
Contributor
Author
rakhmets
marked this pull request as draft
March 25, 2026 08:33
shasson5
previously approved these changes
Mar 25, 2026
rakhmets
force-pushed
the
topic/cuda-ipc-check-pid
branch
from
March 30, 2026 13:01
eea2424 to
fab7abc
Compare
rakhmets
force-pushed
the
topic/cuda-ipc-check-pid
branch
from
March 30, 2026 13:08
fab7abc to
c5b14ed
Compare
Contributor
Author
rakhmets
marked this pull request as ready for review
March 30, 2026 13:08
tvegas1
approved these changes
Mar 30, 2026
yosefe
approved these changes
Mar 30, 2026
Comment on lines
+94
to
+95
| return (pid == rkey_pid) && | ||
| (ucs_sys_get_ns(UCS_SYS_NS_TYPE_PID) == rkey_pid_ns); |
Member
There was a problem hiding this comment.
how does it work if 2 processes on different machines happen to have same pid?
Contributor
Author
There was a problem hiding this comment.
well... it may not work after this #10933 was merged...
it's a corner case for now, since this is a MNNVL case, and the uuids of the GPUs used must also match.
yosefe
enabled auto-merge (squash)
March 30, 2026 15:27
Member
|
@rakhmets pls backport to v1.21.x |
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?
Tightened the check for single process use case in
uct_cuda_ipc_unmap_memhandle.Why?
The same
mapped_addrcan be returned during opening CUDA IPC memory handle exported from another process. This case may be observed when two processes use a single GPU.