From f827b6b8ddbbd675f810cf4e36a4e0efb7ed394f Mon Sep 17 00:00:00 2001 From: Sylvain Jeaugey Date: Fri, 24 Feb 2017 16:35:29 -0800 Subject: [PATCH] Fix more typos using the allgather module for allreduce operations, causing a crash when CUDA collectives are enabled. Signed-off-by: Sylvain Jeaugey Signed-off-by: Akshay Venkatesh --- ompi/communicator/comm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/communicator/comm.c b/ompi/communicator/comm.c index 7126ca486b..cb05d14f9e 100644 --- a/ompi/communicator/comm.c +++ b/ompi/communicator/comm.c @@ -823,7 +823,7 @@ int ompi_comm_split_type (ompi_communicator_t *comm, int split_type, int key, ok = (MPI_UNDEFINED == split_type) || global_split_type == split_type; rc = comm->c_coll.coll_allreduce (MPI_IN_PLACE, &ok, 1, MPI_INT, MPI_MIN, comm, - comm->c_coll.coll_allgather_module); + comm->c_coll.coll_allreduce_module); if (OPAL_UNLIKELY(OMPI_SUCCESS != rc)) { return rc; } @@ -831,7 +831,7 @@ int ompi_comm_split_type (ompi_communicator_t *comm, int split_type, int key, if (inter) { /* need an extra allreduce to ensure that all ranks have the same result */ rc = comm->c_coll.coll_allreduce (MPI_IN_PLACE, &ok, 1, MPI_INT, MPI_MIN, comm, - comm->c_coll.coll_allgather_module); + comm->c_coll.coll_allreduce_module); if (OPAL_UNLIKELY(OMPI_SUCCESS != rc)) { return rc; }