Skip to content

Commit

Permalink
han: explicitly exclude sm/tuned when splitting communicator for tune…
Browse files Browse the repository at this point in the history
…d/sm
  • Loading branch information
wenduwan committed Jul 14, 2023
1 parent 5403341 commit 0d10025
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ompi/mca/coll/han/coll_han_subcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ int mca_coll_han_comm_create(struct ompi_communicator_t *comm,
OBJ_CONSTRUCT(&comm_info, opal_info_t);

/*
* Upgrade sm module priority to set up low_comms[0] with sm module
* Upgrade tuned module priority to set up low_comms[0] with tuned module
* This sub-communicator contains the ranks that share my node.
*/
opal_info_set(&comm_info, "ompi_comm_coll_preference", "tuned,^han");
opal_info_set(&comm_info, "ompi_comm_coll_preference", "tuned,^han,^sm");
ompi_comm_split_type(comm, MPI_COMM_TYPE_SHARED, 0,
&comm_info, &(low_comms[0]));

Expand All @@ -290,10 +290,10 @@ int mca_coll_han_comm_create(struct ompi_communicator_t *comm,
low_rank = ompi_comm_rank(low_comms[0]);

/*
* Upgrade shared module priority to set up low_comms[1] with shared module
* Upgrade sm module priority to set up low_comms[1] with sm module
* This sub-communicator contains the ranks that share my node.
*/
opal_info_set(&comm_info, "ompi_comm_coll_preference", "sm,^han");
opal_info_set(&comm_info, "ompi_comm_coll_preference", "sm,^han,^tuned");
ompi_comm_split_type(comm, MPI_COMM_TYPE_SHARED, 0,
&comm_info, &(low_comms[1]));

Expand Down

0 comments on commit 0d10025

Please sign in to comment.