turned off debug print. make cpu topo info collection default, instead of having...
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 9 Oct 2008 14:47:20 +0000 (14:47 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 9 Oct 2008 14:47:20 +0000 (14:47 +0000)
src/conv-core/cputopology.C

index 23d518309b82373e8563c44c9c1c7c4ff57631e9..cbfa067a6d51782ab598f2e4e802456683b3f623 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdio.h>
 #include <unistd.h>
 
 #include <stdio.h>
 #include <unistd.h>
 
-
 #include <stdlib.h>
 #include <stdio.h>
 
 #include <stdlib.h>
 #include <stdio.h>
 
@@ -192,7 +191,7 @@ static void cpuTopoRecvHandler(void *msg)
     CmiFree(m);
   CmiUnlock(topoLock);
 
     CmiFree(m);
   CmiUnlock(topoLock);
 
-  if (CmiMyPe() == 0) cpuTopo.print();
+  // if (CmiMyPe() == 0) cpuTopo.print();
 }
 
 
 }
 
 
@@ -230,16 +229,17 @@ extern "C" void CmiInitCPUTopology(char **argv)
   hostnameMsg  *msg;
  
   if (CmiMyRank() ==0) {
   hostnameMsg  *msg;
  
   if (CmiMyRank() ==0) {
-       topoLock = CmiCreateLock();
+     topoLock = CmiCreateLock();
   }
 
   int obtain_flag = CmiGetArgFlagDesc(argv,"+obtain_cpu_topology",
                                                "obtain cpu topology info");
   }
 
   int obtain_flag = CmiGetArgFlagDesc(argv,"+obtain_cpu_topology",
                                                "obtain cpu topology info");
+  obtain_flag = 1;
 
   cpuTopoHandlerIdx =
 
   cpuTopoHandlerIdx =
-       CmiRegisterHandler((CmiHandler)cpuTopoHandler);
+     CmiRegisterHandler((CmiHandler)cpuTopoHandler);
   cpuTopoRecvHandlerIdx =
   cpuTopoRecvHandlerIdx =
-       CmiRegisterHandler((CmiHandler)cpuTopoRecvHandler);
+     CmiRegisterHandler((CmiHandler)cpuTopoRecvHandler);
 
   if (!obtain_flag) return;
   else if (CmiMyPe() == 0) {
 
   if (!obtain_flag) return;
   else if (CmiMyPe() == 0) {