Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This caused an invalid read in replay_multiple, as rank in comm !=index.
authordegomme <augustin.degomme@unibas.ch>
Tue, 19 Apr 2016 10:54:13 +0000 (12:54 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 19 Apr 2016 15:56:52 +0000 (17:56 +0200)
src/smpi/smpi_base.cpp

index 703905f..5d12e00 100644 (file)
@@ -1085,7 +1085,7 @@ void smpi_mpi_reduce_scatter(void *sendbuf, void *recvbuf, int *recvcounts, MPI_
 {
     int i, size, count;
     int *displs;
-    int rank = smpi_process_index();
+    int rank = smpi_comm_rank(comm);
     void *tmpbuf;
 
     /* arbitrarily choose root as rank 0 */