[Openmp-commits] [openmp] [OpenMP] Add skewed iteration distribution on hybrid systems (PR #69946)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 25 15:48:09 PDT 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 0c9358948b0478a169da3dabd82a49d15ba2aff4 c3677011299494160fb8cda68592990eda3dac7b -- openmp/runtime/src/kmp.h openmp/runtime/src/kmp_affinity.cpp openmp/runtime/src/kmp_dispatch.cpp openmp/runtime/src/kmp_dispatch.h openmp/runtime/src/kmp_global.cpp openmp/runtime/test/worksharing/for/omp_for_schedule_dynamic.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/src/kmp_dispatch.cpp b/openmp/runtime/src/kmp_dispatch.cpp
index 7fb9c4290284..ac85b2b3f2fc 100644
--- a/openmp/runtime/src/kmp_dispatch.cpp
+++ b/openmp/runtime/src/kmp_dispatch.cpp
@@ -496,7 +496,8 @@ void __kmp_dispatch_init_algorithm(ident_t *loc, int gtid,
float p_multiplier = multiplier * e_multiplier;
p_ntc = __kmp_get_round_val(ntc * p_ratio * p_multiplier);
if ((int)p_ntc > (int)(ntc * p_ratio * p_multiplier))
- e_ntc = (int)(__kmp_round_2decimal_val(ntc * e_ratio * e_multiplier));
+ e_ntc =
+ (int)(__kmp_round_2decimal_val(ntc * e_ratio * e_multiplier));
else
e_ntc = __kmp_get_round_val(ntc * e_ratio * e_multiplier);
KMP_DEBUG_ASSERT(ntc == p_ntc + e_ntc);
``````````
</details>
https://github.com/llvm/llvm-project/pull/69946
More information about the Openmp-commits
mailing list