[Openmp-commits] [openmp] r267472 - Remove architecture dependent Hwloc DEBUG section

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 25 14:11:26 PDT 2016


Author: jlpeyton
Date: Mon Apr 25 16:11:26 2016
New Revision: 267472

URL: http://llvm.org/viewvc/llvm-project?rev=267472&view=rev
Log:
Remove architecture dependent Hwloc DEBUG section

This debug sections's functionality can be replicated using the environment
variable KMP_TOPOLOGY_METHOD with different values and KMP_AFFINITY=verbose

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=267472&r1=267471&r2=267472&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp (original)
+++ openmp/trunk/runtime/src/kmp_affinity.cpp Mon Apr 25 16:11:26 2016
@@ -3777,36 +3777,6 @@ __kmp_aux_affinity_initialize(void)
             KMP_ASSERT(address2os == NULL);
             return;
         }
-#  if KMP_DEBUG
-        AddrUnsPair *otheraddress2os = NULL;
-        int otherdepth = -1;
-#   if KMP_MIC
-        otherdepth = __kmp_affinity_create_apicid_map(&otheraddress2os, &msg_id);
-#   else
-        otherdepth = __kmp_affinity_create_x2apicid_map(&otheraddress2os, &msg_id);
-#   endif
-        if(otheraddress2os != NULL && address2os != NULL) {
-            int i;
-            unsigned arent_equal_flag = 0;
-            for(i=0;i<__kmp_avail_proc;i++) {
-                if(otheraddress2os[i] != address2os[i]) arent_equal_flag = 1;
-            }
-            if(arent_equal_flag) {
-                KA_TRACE(10, ("__kmp_aux_affinity_initialize: Hwloc affinity places are different from APICID\n"));
-                KA_TRACE(10, ("__kmp_aux_affinity_initialize: APICID Table:\n"));
-                for(i=0;i<__kmp_avail_proc;i++) {
-                    otheraddress2os[i].print(); __kmp_printf("\n");
-                }
-                KA_TRACE(10, ("__kmp_aux_affinity_initialize: Hwloc Table:\n"));
-                for(i=0;i<__kmp_avail_proc;i++) {
-                    address2os[i].print(); __kmp_printf("\n");
-                }
-            }
-            else {
-                KA_TRACE(10, ("__kmp_aux_affinity_initialize: Hwloc affinity places are same as APICID\n"));
-            }
-        }
-#  endif // KMP_DEBUG
     }
 # endif // KMP_USE_HWLOC
 




More information about the Openmp-commits mailing list