Skip to content

Commit

Permalink
Review update
Browse files Browse the repository at this point in the history
Update message for supported precisions.
Additionally, improve coding for BENCHMARK_PRECISION default case

Co-authored-by: Aditya Kashi <aditya.kashi@kit.edu>
  • Loading branch information
Thomas Grützmacher and Slaedr committed Dec 15, 2020
1 parent 25ba9c9 commit 1bf9d94
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions benchmark/run_all_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ if [ ! "${SOLVERS_RHS}" ]; then
fi

if [ ! "${BENCHMARK_PRECISION}" ]; then
echo "BENCHMARK_PRECISION not set - assuming \"double\"" 1>&2
BENCH_SUFFIX=""
elif [ "${BENCHMARK_PRECISION}" == "double" ]; then
BENCHMARK_PRECISION="double"
echo "BENCHMARK_PRECISION not set - assuming \"${BENCHMARK_PRECISION}\"" 1>&2
fi

if [ "${BENCHMARK_PRECISION}" == "double" ]; then
BENCH_SUFFIX=""
elif [ "${BENCHMARK_PRECISION}" == "single" ]; then
BENCH_SUFFIX="_single"
Expand All @@ -78,7 +80,7 @@ elif [ "${BENCHMARK_PRECISION}" == "scomplex" ]; then
BENCH_SUFFIX="_scomplex"
else
echo "BENCHMARK_PRECISION is set to the not supported \"${BENCHMARK_PRECISION}\"." 1>&2
echo "Currently supported values: \"double\" and \"single\"" 1>&2
echo "Currently supported values: \"double\", \"single\", \"dcomplex\" and \"scomplex\"" 1>&2
exit 1
fi

Expand Down

0 comments on commit 1bf9d94

Please sign in to comment.