Fix for smp - topomanager share a global variable - we should see
[charm.git] / src / ck-core / init.C
index c2e5c3748bec6383f63f9aec3d21ddcdd6513de6..b677a4a322edb85880dead2e451364a007892591 100644 (file)
@@ -938,7 +938,7 @@ void _initCharm(int unused_argc, char **argv)
 { 
        int inCommThread = (CmiMyRank() == CmiMyNodeSize());
 
-       if(CmiMyNode() == 0) {
+       if(CmiMyNode() == 0 && CmiMyRank() == 0) {
     if(CmiGetArgFlag(argv, "+printTopo")) {
                        TopoManager tmgr;
                        tmgr.printAllocation();