Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change include order for smpi tests/examples to avoid conflicts
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / exscan.c
index 70f4c53..64ab9d5 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 );