Skip to content

Commit f827b6b

Browse files
committed
Fix more typos using the allgather module for allreduce operations, causing a crash when CUDA collectives are enabled.
Signed-off-by: Sylvain Jeaugey <[email protected]> Signed-off-by: Akshay Venkatesh <[email protected]>
1 parent d7dd4d7 commit f827b6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/communicator/comm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,15 +823,15 @@ int ompi_comm_split_type (ompi_communicator_t *comm, int split_type, int key,
823823
ok = (MPI_UNDEFINED == split_type) || global_split_type == split_type;
824824

825825
rc = comm->c_coll.coll_allreduce (MPI_IN_PLACE, &ok, 1, MPI_INT, MPI_MIN, comm,
826-
comm->c_coll.coll_allgather_module);
826+
comm->c_coll.coll_allreduce_module);
827827
if (OPAL_UNLIKELY(OMPI_SUCCESS != rc)) {
828828
return rc;
829829
}
830830

831831
if (inter) {
832832
/* need an extra allreduce to ensure that all ranks have the same result */
833833
rc = comm->c_coll.coll_allreduce (MPI_IN_PLACE, &ok, 1, MPI_INT, MPI_MIN, comm,
834-
comm->c_coll.coll_allgather_module);
834+
comm->c_coll.coll_allreduce_module);
835835
if (OPAL_UNLIKELY(OMPI_SUCCESS != rc)) {
836836
return rc;
837837
}

0 commit comments

Comments
 (0)