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/efa: fix the gdrcopy_handle procedure #8902

Merged
merged 2 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions prov/efa/src/efa_mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,7 @@ static int efa_mr_reg_impl(struct efa_mr *efa_mr, uint64_t flags, void *attr)
shm_flags |= FI_HMEM_DEVICE_ONLY;
}

if (FI_VERSION_GE(efa_mr->domain->util_domain.fabric->fabric_fid.api_version, FI_VERSION(1, 19))) {
mr_attr->hmem_data = efa_mr->peer.hmem_data;
}
mr_attr->hmem_data = efa_mr->peer.hmem_data;

ret = fi_mr_regattr(efa_mr->domain->shm_domain, mr_attr,
shm_flags, &efa_mr->shm_mr);
Expand Down
2 changes: 1 addition & 1 deletion prov/efa/src/efa_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void efa_shm_info_create(const struct fi_info *app_info, struct fi_info **shm_in
shm_hints->fabric_attr->prov_name = strdup(shm_provider);
shm_hints->ep_attr->type = FI_EP_RDM;

ret = fi_getinfo(FI_VERSION(1, 8), NULL, NULL,
ret = fi_getinfo(FI_VERSION(1, 19), NULL, NULL,
OFI_GETINFO_HIDDEN, shm_hints, shm_info);
fi_freeinfo(shm_hints);
if (ret) {
Expand Down