]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/smpi/mpich3-test/coll/exscan.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
put a deployment file near to its binaries
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / exscan.c
index 70f4c53d7b94f9c416db11fb66c5d44aae684135..64ab9d5a81c7fcaca48cabea6b6d5ce04222c141 100644 (file)
@@ -84,6 +84,11 @@ int main( int argc, char *argv[] )
                     }
                 }
             }
+
+            MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN);
+            /* Make sure that we check for buffer aliasing properly */
+            if (MPI_SUCCESS == MPI_Exscan( recvbuf, recvbuf, count, MPI_INT, MPI_SUM, comm ))
+                errs++;
 #endif
 
            free( sendbuf );