[Openmp-commits] [PATCH] D112597: [OpenMP] libomp: Fix handling of barrier pattern environment variables
Andrey Churbanov via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 8 04:02:24 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0808d956c43e: [OpenMP] libomp: Fix handling of barrier pattern environment variables (authored by t-msn, committed by AndreyChurbanov).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112597/new/
https://reviews.llvm.org/D112597
Files:
openmp/runtime/src/kmp_settings.cpp
Index: openmp/runtime/src/kmp_settings.cpp
===================================================================
--- openmp/runtime/src/kmp_settings.cpp
+++ openmp/runtime/src/kmp_settings.cpp
@@ -1753,17 +1753,9 @@
}
}
}
- if ((dist_req == 0) && (non_dist_req != 0)) {
- // Something was set to a barrier other than dist; set all others to hyper
- for (int i = bs_plain_barrier; i < bs_last_barrier; i++) {
- if (__kmp_barrier_release_pattern[i] == bp_dist_bar)
- __kmp_barrier_release_pattern[i] = bp_hyper_bar;
- if (__kmp_barrier_gather_pattern[i] == bp_dist_bar)
- __kmp_barrier_gather_pattern[i] = bp_hyper_bar;
- }
- } else if (non_dist_req != 0) {
- // some requests for dist, plus requests for others; set all to dist
- if (non_dist_req > 0 && dist_req > 0 && warn) {
+ if (dist_req != 0) {
+ // set all barriers to dist
+ if ((non_dist_req != 0) && warn) {
KMP_INFORM(BarrierPatternOverride, name,
__kmp_barrier_pattern_name[bp_dist_bar]);
warn = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112597.385444.patch
Type: text/x-patch
Size: 1053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211108/62776059/attachment.bin>
More information about the Openmp-commits
mailing list