Skip to content

Commit

Permalink
MPI layer: assert that Charm does not require msg ordering (#3594)
Browse files Browse the repository at this point in the history
Co-authored-by: Ronak Buch <rabuch2@illinois.edu>
  • Loading branch information
stwhite91 and rbuch committed Apr 22, 2022
1 parent 243d32d commit cb4d760
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/arch/mpi/machine.C
Original file line number Diff line number Diff line change
Expand Up @@ -1423,9 +1423,16 @@ void LrtsInit(int *argc, char ***argv, int *numNodes, int *myNodeID) {

largc = *argc;
largv = *argv;

if(!CharmLibInterOperate || userDrivenMode) {
MPI_Comm_dup(MPI_COMM_WORLD, &charmComm);
/* Create our communicator, with info hints (such as us not requiring
* message ordering) to enable possible MPI runtime optimizations. */
MPI_Info hints;
MPI_Info_create(&hints);
MPI_Info_set(hints, "mpi_assert_allow_overtaking", "true");
MPI_Comm_dup_with_info(MPI_COMM_WORLD, hints, &charmComm);
}

MPI_Comm_size(charmComm, numNodes);
MPI_Comm_rank(charmComm, myNodeID);

Expand Down

0 comments on commit cb4d760

Please sign in to comment.