Skip to content

Commit

Permalink
common: bump up the required clang-format version
Browse files Browse the repository at this point in the history
  • Loading branch information
janekmi committed Aug 6, 2023
1 parent ee3bb15 commit 1e0b90d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/benchmarks/pmembench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1215,9 +1215,10 @@ scale_up_min_exe_time(struct benchmark *bench, struct benchmark_args *args,
* scale up number of operations to get assumed minimal
* execution time
*/
args->n_ops_per_thread = (size_t)(
(double)args->n_ops_per_thread *
(min_exe_time + MIN_EXE_TIME_E) / total_res->total.min);
args->n_ops_per_thread =
(size_t)((double)args->n_ops_per_thread *
(min_exe_time + MIN_EXE_TIME_E) /
total_res->total.min);

results_free(total_res);
*total_results = results_alloc(args);
Expand Down
8 changes: 4 additions & 4 deletions utils/style_check.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2022, Intel Corporation
# Copyright 2016-2023, Intel Corporation
#
# utils/style_check.sh -- common style checking script
#
Expand Down Expand Up @@ -29,15 +29,15 @@ function usage() {
}

#
# require clang-format version 9.0
# require clang-format version 14.0
#
function check_clang_version() {
set +e
which ${clang_format_bin} &> /dev/null && ${clang_format_bin} --version |\
grep "version 9\.0"\
grep "version 14\.0"\
&> /dev/null
if [ $? -ne 0 ]; then
echo "SKIP: requires clang-format version 9.0"
echo "SKIP: requires clang-format version==14.0"
exit 0
fi
set -e
Expand Down

0 comments on commit 1e0b90d

Please sign in to comment.