Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UCP: Add user_data to ucp_ep_query #9988

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

Peter-JanGootzen
Copy link
Contributor

What

This addition to the endpoint query API adds a new field_mask value that
will instruct ucp_ep_query to return the endpoint's user_data pointer.

Why ?

The UCP API allows the user to register a user_data pointer inside of an
endpoint. Currently this pointer is only exposed back to the user in
the error callback and via ucp_stream_worker_poll.
When working in a code base that has many endpoints associated with a
single worker, the application needs to create a mapping data structure
between endpoints and user data that it accesses in the AM callback.
This is an extra overhead that can be avoided by simply adding a way
to extract the user_data pointer out of the endpoint.

yosefe
yosefe previously approved these changes Jul 4, 2024
@yosefe
Copy link
Contributor

yosefe commented Jul 4, 2024

@shamisp can you pls take a look?

shamisp
shamisp previously approved these changes Jul 5, 2024
@shamisp
Copy link
Contributor

shamisp commented Jul 5, 2024

LGTM

@Peter-JanGootzen Peter-JanGootzen dismissed stale reviews from shamisp and yosefe via 7217433 July 10, 2024 10:25
src/ucp/core/ucp_ep.h Outdated Show resolved Hide resolved
yosefe
yosefe previously approved these changes Jul 10, 2024
brminich
brminich previously approved these changes Jul 10, 2024
@yosefe
Copy link
Contributor

yosefe commented Jul 10, 2024

@Peter-JanGootzen can you pls squash to a single commit and force push?

Signed-off-by: Peter-Jan Gootzen <[email protected]>
@Peter-JanGootzen
Copy link
Contributor Author

Gentle ping, the branch has been squashed.

@roiedanino roiedanino merged commit 12539bc into openucx:master Jul 17, 2024
142 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants