Skip to content

Commit 714b74e

Browse files
committed
mute all prints under quiet mode
1 parent 7f0b80d commit 714b74e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

benchmarks/C/indep_data_obj_create.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,11 +1397,9 @@ int main(int argc, char *argv[]) {
13971397
MPI_Reduce(&times[0], &max_times[0], 6, MPI_DOUBLE, MPI_MAX, 0, MPI_COMM_WORLD);
13981398
MPI_Reduce(&times[0], &min_times[0], 6, MPI_DOUBLE, MPI_MIN, 0, MPI_COMM_WORLD);
13991399
for (int i = 0; i < 6; i++) {
1400-
if (rank == 0) {
1400+
if (rank == 0 && verbose) {
1401+
printf("Min %s time: %f seconds\n", names[i], min_times[i]);
14011402
printf("Max %s time: %f seconds\n", names[i], max_times[i]);
1402-
if (verbose){
1403-
printf("Min %s time: %f seconds\n", names[i], min_times[i]);
1404-
}
14051403
}
14061404
}
14071405
if (mem_track){

0 commit comments

Comments
 (0)