From c4b679ec5a9cda337261612e1e68df5627abcec8 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 5 Mar 2022 12:21:28 +0100 Subject: [PATCH] fix AllReduce (array) --- libsrc/core/mpi_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/mpi_wrapper.hpp b/libsrc/core/mpi_wrapper.hpp index ee252f23..a9be73ca 100644 --- a/libsrc/core/mpi_wrapper.hpp +++ b/libsrc/core/mpi_wrapper.hpp @@ -258,7 +258,7 @@ namespace ngcore void AllReduce (FlatArray d, const MPI_Op & op) const { static Timer t("MPI - AllReduce Array"); RegionTimer reg(t); - if (size == 1) return d; + if (size == 1) return; MPI_Allreduce (MPI_IN_PLACE, d.Data(), d.Size(), GetMPIType(), op, comm); }