From d3712fd9c6b068a362fc73454b99ccfbadb0e2c9 Mon Sep 17 00:00:00 2001 From: degomme Date: Fri, 13 Apr 2018 14:06:31 +0200 Subject: [PATCH] that was fixed locally, shouldn't have been able to push... --- src/smpi/bindings/smpi_pmpi_coll.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smpi/bindings/smpi_pmpi_coll.cpp b/src/smpi/bindings/smpi_pmpi_coll.cpp index 8c246d8d09..2593fa3bcc 100644 --- a/src/smpi/bindings/smpi_pmpi_coll.cpp +++ b/src/smpi/bindings/smpi_pmpi_coll.cpp @@ -415,6 +415,7 @@ int PMPI_Scan(void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MP retval = MPI_ERR_OP; } else { int rank = simgrid::s4u::this_actor::get_pid(); + void* sendtmpbuf = sendbuf; if (sendbuf == MPI_IN_PLACE) { sendtmpbuf = static_cast(xbt_malloc(count * datatype->size())); memcpy(sendtmpbuf, recvbuf, count * datatype->size()); -- 2.20.1