From 5194f75c72a1e45fbe1f4ca7b7ec2e968168f89c Mon Sep 17 00:00:00 2001 From: degomme Date: Fri, 29 Mar 2019 11:38:05 +0100 Subject: [PATCH] fix case where bcast is called with only one proc (and thus skipped) --- src/smpi/bindings/smpi_pmpi_coll.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/smpi/bindings/smpi_pmpi_coll.cpp b/src/smpi/bindings/smpi_pmpi_coll.cpp index 3a82044232..91bbfd8494 100644 --- a/src/smpi/bindings/smpi_pmpi_coll.cpp +++ b/src/smpi/bindings/smpi_pmpi_coll.cpp @@ -70,6 +70,9 @@ int PMPI_Ibcast(void *buf, int count, MPI_Datatype datatype, simgrid::smpi::Colls::bcast(buf, count, datatype, root, comm); else simgrid::smpi::Colls::ibcast(buf, count, datatype, root, comm, request); + } else { + if(request!=MPI_REQUEST_IGNORED) + *request = MPI_REQUEST_NULL; } retval = MPI_SUCCESS; -- 2.20.1