order the node ID in the ascending PE number, instead of randomly depending on the...
authorGengbin Zheng <tg455581@login3.ranger.tacc.utexas.edu>
Sat, 20 Feb 2010 19:45:31 +0000 (13:45 -0600)
committerGengbin Zheng <tg455581@login3.ranger.tacc.utexas.edu>
Sat, 20 Feb 2010 19:45:31 +0000 (13:45 -0600)
src/conv-core/cputopology.C

index 39527c14bccf532cdcfb4f75133786bf67c7bfef..3c3bd78f092c221e74f585f8d1ad6c575958a488 100644 (file)
@@ -237,7 +237,8 @@ static void cpuTopoHandler(void *m)
     CmiFree(msg);
   }
   else {
-    msg->nodeID = nodecount++;
+//    msg->nodeID = nodecount++;
+    msg->nodeID = pe;           // we will compact the node ID later
     rec = msg;
     CmmPut(hostTable, 1, &tag, msg);
   }
@@ -277,7 +278,7 @@ static void cpuTopoRecvHandler(void *msg)
     CmiFree(m);
   CmiUnlock(topoLock);
 
-  // if (CmiMyPe() == 0) cpuTopo.print();
+//  if (CmiMyPe() == 0) cpuTopo.print();
 }
 
 /******************  API implementation **********************/