Skip to content

UCP: Add API to query datatype attributes#8120

Merged
yosefe merged 1 commit intoopenucx:masterfrom
rdietric:ucp_datatype/query_size_api
May 26, 2022
Merged

UCP: Add API to query datatype attributes#8120
yosefe merged 1 commit intoopenucx:masterfrom
rdietric:ucp_datatype/query_size_api

Conversation

@rdietric
Copy link
Copy Markdown

What

This PR adds a new public API function to query attributes for a UCP datatype. Currently, the packed size is the only attribute that can be queried.

Why ?

The size of a message or data transfer is a performance-relevant information. Performance tools should be able to query this information. MPI provides MPI_Type_size to query the size of any MPI datatype.

How ?

A follow-up PR will implement ucp_dt_query in src/ucp/dt/dt.c. Unfortunately, the size of a UCP generic datatype is not available before it has been used in a UCP communication operation without more significant API changes.

@shamisp
Copy link
Copy Markdown
Contributor

shamisp commented Apr 13, 2022

Hi @rdietric. Thanks for sharing your API proposal. Do you have signed CLA with the project ? Corporate and private CLAs can be found here: https://openucx.org/license/

Guidance to contributors is here: https://github.com/openucx/ucx/wiki/Guidance-for-contributors

@yosefe
Copy link
Copy Markdown
Contributor

yosefe commented Apr 13, 2022

@shamisp , @rdietric is with NVIDIA.

@yosefe yosefe added the API label Apr 13, 2022
@shamisp
Copy link
Copy Markdown
Contributor

shamisp commented Apr 13, 2022

@shamisp , @rdietric is with NVIDIA.

I just noticed the email signature. Typically I check the GitHub account affiliation first, which is not set in this case.

@rdietric
Copy link
Copy Markdown
Author

I used my existing Github account and just added NVIDIA to my profile. Sorry for the inconveniences!

@shamisp
Copy link
Copy Markdown
Contributor

shamisp commented Apr 13, 2022

I used my existing Github account and just added NVIDIA to my profile. Sorry for the inconveniences!

@rdietric not a problem, you did better than many others ;)

@rdietric rdietric force-pushed the ucp_datatype/query_size_api branch from aef2c05 to 33ea8ac Compare April 13, 2022 14:21
Comment thread src/ucp/api/ucp.h Outdated
Comment thread src/ucp/api/ucp.h Outdated
Comment thread src/ucp/api/ucp.h
@brminich
Copy link
Copy Markdown
Contributor

@yosefe, @shamisp can you please review?

Comment thread src/ucp/api/ucp.h
@shamisp
Copy link
Copy Markdown
Contributor

shamisp commented Apr 20, 2022

@tonycurtis can you please review documentation.

tonycurtis
tonycurtis previously approved these changes Apr 20, 2022
@shamisp
Copy link
Copy Markdown
Contributor

shamisp commented Apr 21, 2022

Looks good

shamisp
shamisp previously approved these changes Apr 21, 2022
@rdietric
Copy link
Copy Markdown
Author

I added PR #8150 with the implementation.

@rdietric
Copy link
Copy Markdown
Author

rdietric commented May 4, 2022

Is there anything else I can do to get the PR merged?

Comment thread src/ucp/api/ucp.h Outdated
Comment thread src/ucp/api/ucp.h
Comment thread src/ucp/api/ucp.h
Comment thread src/ucp/api/ucp.h Outdated
yosefe
yosefe previously approved these changes May 9, 2022
@yosefe
Copy link
Copy Markdown
Contributor

yosefe commented May 9, 2022

@shamisp @tonycurtis can you pls review as well?

@yosefe
Copy link
Copy Markdown
Contributor

yosefe commented May 9, 2022

@rdietric pls check the build failures

@rdietric
Copy link
Copy Markdown
Author

@rdietric pls check the build failures

I fixed the build failures, which were caused by a wrong @ref in a field comment.

@shamisp shamisp self-requested a review May 10, 2022 15:24
shamisp
shamisp previously approved these changes May 10, 2022
yosefe
yosefe previously approved these changes May 13, 2022
@yosefe
Copy link
Copy Markdown
Contributor

yosefe commented May 13, 2022

@tonycurtis can you pls take a look?

tonycurtis
tonycurtis previously approved these changes May 24, 2022
@yosefe
Copy link
Copy Markdown
Contributor

yosefe commented May 24, 2022

@rdietric pls squash

@rdietric rdietric dismissed stale reviews from tonycurtis, yosefe, and shamisp via 0386df2 May 24, 2022 22:36
@rdietric rdietric force-pushed the ucp_datatype/query_size_api branch from e868ac6 to 0386df2 Compare May 24, 2022 22:36
@rdietric
Copy link
Copy Markdown
Author

I squashed the commits. The failing tests seem unrelated to changes in this PR.

@yosefe yosefe merged commit 0b8b49e into openucx:master May 26, 2022
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