aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/kmp_affinity.cpp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2017-12-06 21:07:41 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2017-12-06 21:07:41 +0000
commit865d07f101af37c376e6a6a52fe658f25b3e3e41 (patch)
tree43b343f0f8d1d56705220819cfbc4a1905462fd5 /runtime/src/kmp_affinity.cpp
parent441b330c987847da8d9521dfc8e7aac80cf63a32 (diff)
Eliminate double printing of verbose affinity settings
Redundant extra verbose output of binding to full mask in case affinity=balanced or OMP_PLACES=<any> or OMP_PROC_BIND=<any> Differential Revision: https://reviews.llvm.org/D40624 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@319960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/src/kmp_affinity.cpp')
-rw-r--r--runtime/src/kmp_affinity.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/src/kmp_affinity.cpp b/runtime/src/kmp_affinity.cpp
index fe5fbe5..c281397 100644
--- a/runtime/src/kmp_affinity.cpp
+++ b/runtime/src/kmp_affinity.cpp
@@ -4640,7 +4640,9 @@ void __kmp_affinity_set_init_mask(int gtid, int isa_root) {
KMP_CPU_COPY(th->th.th_affin_mask, mask);
- if (__kmp_affinity_verbose) {
+ if (__kmp_affinity_verbose
+ /* to avoid duplicate printing (will be correctly printed on barrier) */
+ && (__kmp_affinity_type == affinity_none || i != KMP_PLACE_ALL)) {
char buf[KMP_AFFIN_MASK_PRINT_LEN];
__kmp_affinity_print_mask(buf, KMP_AFFIN_MASK_PRINT_LEN,
th->th.th_affin_mask);