[Openmp-commits] [openmp] r340647 - [OpenMP] Fixed affinity verbose double printing for balanced type.

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 24 13:35:42 PDT 2018


Author: jlpeyton
Date: Fri Aug 24 13:35:42 2018
New Revision: 340647

URL: http://llvm.org/viewvc/llvm-project?rev=340647&view=rev
Log:
[OpenMP] Fixed affinity verbose double printing for balanced type.

Modified:
    openmp/trunk/runtime/src/kmp_affinity.cpp

Modified: openmp/trunk/runtime/src/kmp_affinity.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_affinity.cpp?rev=340647&r1=340646&r2=340647&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp (original)
+++ openmp/trunk/runtime/src/kmp_affinity.cpp Fri Aug 24 13:35:42 2018
@@ -4726,7 +4726,8 @@ void __kmp_affinity_set_init_mask(int gt
 
   if (__kmp_affinity_verbose
       /* to avoid duplicate printing (will be correctly printed on barrier) */
-      && (__kmp_affinity_type == affinity_none || i != KMP_PLACE_ALL)) {
+      && (__kmp_affinity_type == affinity_none ||
+          (i != KMP_PLACE_ALL && __kmp_affinity_type != affinity_balanced))) {
     char buf[KMP_AFFIN_MASK_PRINT_LEN];
     __kmp_affinity_print_mask(buf, KMP_AFFIN_MASK_PRINT_LEN,
                               th->th.th_affin_mask);




More information about the Openmp-commits mailing list