From 338199d548c5fc58a1c7c2ef313cbb7276be70f4 Mon Sep 17 00:00:00 2001 From: "Stephen P. Cook" Date: Thu, 28 Sep 2023 10:59:19 +0100 Subject: [PATCH] Fix usage error messages --- tutorials/mpi-reduce-and-allreduce/code/reduce_avg.c | 2 +- tutorials/mpi-reduce-and-allreduce/code/reduce_stddev.c | 2 +- tutorials/mpi-scatter-gather-and-allgather/code/all_avg.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/mpi-reduce-and-allreduce/code/reduce_avg.c b/tutorials/mpi-reduce-and-allreduce/code/reduce_avg.c index c60247f..57999f6 100644 --- a/tutorials/mpi-reduce-and-allreduce/code/reduce_avg.c +++ b/tutorials/mpi-reduce-and-allreduce/code/reduce_avg.c @@ -26,7 +26,7 @@ float *create_rand_nums(int num_elements) { int main(int argc, char** argv) { if (argc != 2) { - fprintf(stderr, "Usage: avg num_elements_per_proc\n"); + fprintf(stderr, "Usage: reduce_avg num_elements_per_proc\n"); exit(1); } diff --git a/tutorials/mpi-reduce-and-allreduce/code/reduce_stddev.c b/tutorials/mpi-reduce-and-allreduce/code/reduce_stddev.c index 4560d37..7ea9558 100644 --- a/tutorials/mpi-reduce-and-allreduce/code/reduce_stddev.c +++ b/tutorials/mpi-reduce-and-allreduce/code/reduce_stddev.c @@ -26,7 +26,7 @@ float *create_rand_nums(int num_elements) { int main(int argc, char** argv) { if (argc != 2) { - fprintf(stderr, "Usage: avg num_elements_per_proc\n"); + fprintf(stderr, "Usage: reduce_stddev num_elements_per_proc\n"); exit(1); } diff --git a/tutorials/mpi-scatter-gather-and-allgather/code/all_avg.c b/tutorials/mpi-scatter-gather-and-allgather/code/all_avg.c index c7bea7d..693bdb8 100644 --- a/tutorials/mpi-scatter-gather-and-allgather/code/all_avg.c +++ b/tutorials/mpi-scatter-gather-and-allgather/code/all_avg.c @@ -36,7 +36,7 @@ float compute_avg(float *array, int num_elements) { int main(int argc, char** argv) { if (argc != 2) { - fprintf(stderr, "Usage: avg num_elements_per_proc\n"); + fprintf(stderr, "Usage: all_avg num_elements_per_proc\n"); exit(1); }