Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
that was fixed locally, shouldn't have been able to push...
authordegomme <augustin.degomme@unibas.ch>
Fri, 13 Apr 2018 12:06:31 +0000 (14:06 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Fri, 13 Apr 2018 12:06:31 +0000 (14:06 +0200)
src/smpi/bindings/smpi_pmpi_coll.cpp

index 8c246d8..2593fa3 100644 (file)
@@ -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<void*>(xbt_malloc(count * datatype->size()));
       memcpy(sendtmpbuf, recvbuf, count * datatype->size());