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

fi_av_insert utilization improvement for node_consecutive case #2

Open
wants to merge 2 commits into
base: bc-exchange
Choose a base branch
from
Open
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
7 changes: 2 additions & 5 deletions src/mpid/ch4/netmod/ofi/ofi_comm.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,9 @@ static inline int MPIDI_NM_mpi_comm_create_hook(MPIR_Comm * comm)

mapped_table = MPL_malloc(size * sizeof(fi_addr_t));
if (MPII_Comm_is_node_consecutive(comm)) {
fi_av_insert(MPIDI_Global.av, table, size, mapped_table, 0ULL, NULL);
for (i = 0; i < size; i++) {
/* only insert new addresses */
if (MPIDI_OFI_AV(&MPIDIU_get_av(0, i)).dest == FI_ADDR_UNSPEC) {
fi_av_insert(MPIDI_Global.av, table[i].addrname, 1, &mapped_table[i], 0ULL, NULL);
MPIDI_OFI_AV(&MPIDIU_get_av(0, i)).dest = mapped_table[i];
}
MPIDI_OFI_AV(&MPIDIU_get_av(0, i)).dest = mapped_table[i];
}
} else {
int ranks[size];
Expand Down