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

prov/util: store hmem_data in ofi_mr_map #8826

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

wenduwan
Copy link
Contributor

Store hmem_data in ofi_mr_map such that it can be retrieved later

@wenduwan wenduwan requested review from shefty, aingerson and a team April 19, 2023 00:21
@wenduwan
Copy link
Contributor Author

Build failure is Azure mirror issue.

@@ -257,9 +257,11 @@ void ofi_mr_update_attr(uint32_t user_version, uint64_t caps,
if (caps & FI_HMEM) {
cur_abi_attr->iface = user_attr->iface;
cur_abi_attr->device = user_attr->device;
cur_abi_attr->hmem_data = user_attr->hmem_data;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to check version here. Only when user_version >= 1.19, can you access user_attr->hmem_data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It that necessary(or does it work that way)? hmem_data is defined in fi_domain.h and we shouldn't expect a version mismatch between these files right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to deal with compiled apps which may be against the older header.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. That makes sense. Good catch!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wzamazon Do you have other comments?

@wenduwan wenduwan force-pushed the store_hmem_data branch 3 times, most recently from ac8ae0b to 030fb89 Compare April 19, 2023 02:18
Store hmem_data in ofi_mr_map such that it can be retrieved later

Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
@wenduwan wenduwan requested a review from wzamazon April 19, 2023 16:08
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.

4 participants