diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2017-12-06 21:07:41 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2017-12-06 21:07:41 +0000 |
| commit | 125203e003d535cfcecd09b00a5391f62cb76176 (patch) | |
| tree | ff3983e10ed04175986a55339c9fe0d112481917 /openmp/runtime/src | |
| parent | f7c7944387332b40033b58bab798ff6450aa7692 (diff) | |
| download | bcm5719-llvm-125203e003d535cfcecd09b00a5391f62cb76176.tar.gz bcm5719-llvm-125203e003d535cfcecd09b00a5391f62cb76176.zip | |
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
llvm-svn: 319960
Diffstat (limited to 'openmp/runtime/src')
| -rw-r--r-- | openmp/runtime/src/kmp_affinity.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp index fe5fbe59097..c2813970a12 100644 --- a/openmp/runtime/src/kmp_affinity.cpp +++ b/openmp/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); |

