[Openmp-commits] [PATCH] D40624: Eliminate double printing of verbose affinity settings

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 6 13:08:25 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL319960: Eliminate double printing of verbose affinity settings (authored by jlpeyton).

Changed prior to commit:
  https://reviews.llvm.org/D40624?vs=124827&id=125792#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40624

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


Index: openmp/trunk/runtime/src/kmp_affinity.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp
+++ openmp/trunk/runtime/src/kmp_affinity.cpp
@@ -4640,7 +4640,9 @@
 
   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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40624.125792.patch
Type: text/x-patch
Size: 654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171206/d334d78f/attachment-0001.bin>


More information about the Openmp-commits mailing list