Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
exscan non commutative fix
authorAugustin Degomme <degomme@idpann.imag.fr>
Tue, 9 Jul 2013 13:01:17 +0000 (15:01 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 11 Jul 2013 19:26:34 +0000 (21:26 +0200)
src/smpi/smpi_base.c

index ec16dbe..04f665f 100644 (file)
@@ -1366,7 +1366,7 @@ void smpi_mpi_exscan(void *sendbuf, void *recvbuf, int count,
       smpi_mpi_wait(&(requests[other]), MPI_STATUS_IGNORE);
       if(index < rank) {
           if(recvbuf_is_empty){
-            smpi_datatype_copy(tmpbufs[index], count, datatype, recvbuf, count, datatype);
+            smpi_datatype_copy(tmpbufs[other], count, datatype, recvbuf, count, datatype);
             recvbuf_is_empty=0;
           }else smpi_op_apply(op, tmpbufs[other], recvbuf, &count, &datatype);
       }