Skip to content

UCP/DEVICE: Fix lane selection - #11815

Open
ofirfarjun7 wants to merge 1 commit into
openucx:masterfrom
ofirfarjun7:topic/fix-lane-selection
Open

UCP/DEVICE: Fix lane selection#11815
ofirfarjun7 wants to merge 1 commit into
openucx:masterfrom
ofirfarjun7:topic/fix-lane-selection

Conversation

@ofirfarjun7

Copy link
Copy Markdown
Contributor

What?

Fix device memory-list lane selection to use only transport resources that are both present on the element’s endpoint and compatible with its remote key.

Why?

The device transport bitmap is collected from the worker context and can contain resources not selected for a specific endpoint. Previously, one unavailable resource caused UCX to reject the entire LKEY or no-LKEY lane class, even when another compatible lane was available. This resulted in lane not found for element errors.

How?

Build a per-element selected transport bitmap by filtering the context candidates:
Skip resources that are not endpoint lanes.
Skip endpoint lanes whose destination MD is absent from the element’s remote-key MD map.
Pack only the remaining lanes.
Stop packing once the allocated number of lanes has been filled.

Co-authored-by: OpenAI Codex <codex@openai.com>
@ofirfarjun7 ofirfarjun7 changed the title UCP/DEVICE: Fix device API lane selection UCP/DEVICE: Fix lane selection Aug 23, 2026
@ofirfarjun7 ofirfarjun7 added the WIP-DNM Work in progress / Do not review label Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP-DNM Work in progress / Do not review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant