-
Notifications
You must be signed in to change notification settings - Fork 382
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
Conversation
Build failure is Azure mirror issue. |
prov/util/src/util_mr_map.c
Outdated
@@ -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; |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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?
ac8ae0b
to
030fb89
Compare
Store hmem_data in ofi_mr_map such that it can be retrieved later Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
030fb89
to
163058c
Compare
Store hmem_data in ofi_mr_map such that it can be retrieved later