Skip to content

UCT/CUDA/CUDA_IPC: Unmap memhandle mapped at rkey unpack, rkey ptr, mem element pack - v1.22.x - #11776

Merged
ofirfarjun7 merged 2 commits into
openucx:v1.22.xfrom
rakhmets:topic/cuda-ipc-md-mem-elem-pack-1.22
Aug 16, 2026
Merged

ofirfarjun7 merged 2 commits into
openucx:v1.22.xfrom
rakhmets:topic/cuda-ipc-md-mem-elem-pack-1.22

Conversation

@rakhmets

Copy link
Copy Markdown
Contributor

What?

Added UCT API uct_md_mem_elem_release to be able to release resources allocated during uct_md_mem_elem_pack.

Unregistered the CUDA IPC memory handle that was registered when unpacking the remote memory key, getting local pointer to remote memory, packing memory element.

Why?

cuda_ipc maps remote address, opening interprocess handle. It's not possible to release the memory without closing all opened interprocess handles.

How?

Cherry-picked #11288 and #11730

@ofirfarjun7
ofirfarjun7 merged commit 7b6bb39 into openucx:v1.22.x Aug 16, 2026
161 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants