projections generate topology file.
[charm.git] / src / ck-core / init.C
index 776e8525d7fa81e00742f5fb4fbaa6a8e6db6461..41400042445ca91b29ed31f03e2e287cd35e10f3 100644 (file)
@@ -950,13 +950,6 @@ void _initCharm(int unused_argc, char **argv)
 { 
        int inCommThread = (CmiMyRank() == CmiMyNodeSize());
 
-       if(CmiMyNode() == 0 && CmiMyRank() == 0) {
-    if(CmiGetArgFlag(argv, "+printTopo")) {
-                       TopoManager tmgr;
-                       tmgr.printAllocation();
-               }
-       }
-
        DEBUGF(("[%d,%.6lf ] _initCharm started\n",CmiMyPe(),CmiWallTimer()));
 
        CkpvInitialize(size_t *, _offsets);
@@ -1259,6 +1252,14 @@ void _initCharm(int unused_argc, char **argv)
         CmiInitCPUTopology(argv);
     }
 
+       if(CmiMyPe() == 0) {
+            if(CmiGetArgFlag(argv, "+printTopo")) {
+               TopoManager tmgr;
+               tmgr.printAllocation(stdout);
+           }
+       }
+
+
 #if CMK_USE_PXSHM && CMK_CRAYXE && CMK_SMP
       // for SMP on Cray XE6 (hopper) it seems pxshm has to be initialized
       // again after cpuaffinity is done