Skip to content

Commit

Permalink
Merge pull request #6516 from hzhou/2305_ch3_split
Browse files Browse the repository at this point in the history
ch3: fix MPIR_Get_node_id for intercomm

Approved-by: Ken Raffenetti
hzhou authored May 15, 2023
2 parents 0f72280 + 1029595 commit bba85c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mpid/ch3/src/mpid_vc.c
Original file line number Diff line number Diff line change
@@ -804,7 +804,11 @@ char MPIU_hostname[MAX_HOSTNAME_LEN] = "_UNKNOWN_"; /* '_' is an illegal char fo

int MPID_Get_node_id(MPIR_Comm *comm, int rank, int *id_p)
{
*id_p = comm->dev.vcrt->vcr_table[rank]->node_id;
if (comm->comm_kind == MPIR_COMM_KIND__INTRACOMM) {
*id_p = comm->dev.vcrt->vcr_table[rank]->node_id;
} else {
*id_p = comm->dev.local_vcrt->vcr_table[rank]->node_id;
}
return MPI_SUCCESS;
}

0 comments on commit bba85c7

Please sign in to comment.