Cant find skt_my_ip on BG and returning DCMF_Messager_rank() instead. Havent changed...
authorSameer Kumar <skumar2@uiuc.edu>
Mon, 22 Dec 2008 23:45:58 +0000 (23:45 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Mon, 22 Dec 2008 23:45:58 +0000 (23:45 +0000)
src/conv-core/cputopology.C

index 89cf493c5493d356d32b2eea605ee947396423cc..04bbc538f4facddb2a8ca55da418c6e796be4e8f 100644 (file)
 #include <stdlib.h>
 #include <stdio.h>
 
+#if CMK_BLUEGENEP
+#include <dcmf.h>
+#endif
+
 #if defined(__APPLE__)  && CMK_HAS_MULTIPROCESSING_H
 #include <Carbon/Carbon.h>
 #include <Multiprocessing.h>
@@ -263,7 +267,11 @@ extern "C" void CmiInitCPUTopology(char **argv)
     /* get my ip address */
   if (CmiMyRank() == 0)
   {
-#if CMK_CRAYXT
+#if CMK_BLUEGENEP
+    //CmiAbort("Can not get unique name for the compute nodes. \n");
+    ret = DCMF_Messager_rank();
+    memcpy(&myip, &ret, sizeof(int));
+#elif CMK_CRAYXT
     ret = getXTNodeID(CmiMyPe(), CmiNumPes());
     memcpy(&myip, &ret, sizeof(int));
 #elif CMK_HAS_GETHOSTNAME