From a198b0404cd1b88eebc1820fd72f5e383f32956a Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Thu, 11 Feb 2021 15:50:48 +0000 Subject: [PATCH] Bugfix MDTest: only rank 0 shall print errors. --- src/mdtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdtest.c b/src/mdtest.c index cfd221a..d780fba 100644 --- a/src/mdtest.c +++ b/src/mdtest.c @@ -2483,9 +2483,9 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE * FAIL("Unable to remove test directory path %s", o.testdirpath); } - int total_errors; + int total_errors = 0; MPI_Reduce(& o.verification_error, & total_errors, 1, MPI_INT, MPI_SUM, 0, testComm); - if(total_errors){ + if(rank == 0 && total_errors){ VERBOSE(0, -1, "\nERROR: verifying the data on read (%lld errors)! Take the performance values with care!\n", total_errors); } VERBOSE(0,-1,"-- finished at %s --\n", PrintTimestamp());