Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Updated expected output.
[simgrid.git] / examples / smpi / reduce.c
index 25ae108..bd4e151 100644 (file)
@@ -24,7 +24,7 @@
  * ENHANCEMENTS, OR MODIFICATIONS.
  * ***************************************************************************
  **/
-int ibm_test(int rank, int size)
+static int ibm_test(int rank, int size)
 {
   int success = 1;
 #define MAXLEN  10000
@@ -79,7 +79,7 @@ int main(int argc, char **argv)
 
   value = rank + 1;             /* easy to verify that sum= (size*(size+1))/2; */
 
-  printf("[%d] has value %d\n", rank, value);
+  //printf("[%d] has value %d\n", rank, value);
   MPI_Reduce(&value, &sum, 1, MPI_INT, MPI_SUM, root, MPI_COMM_WORLD);
   MPI_Reduce(&value, &sum_mirror, 1, MPI_INT, MPI_SUM, root, MPI_COMM_WORLD);