Fix for smp - topomanager share a global variable - we should see
authorNikhil Jain <nikhil@illinois.edu>
Thu, 29 Mar 2012 22:22:36 +0000 (15:22 -0700)
committerNikhil Jain <nikhil@illinois.edu>
Thu, 29 Mar 2012 22:22:36 +0000 (15:22 -0700)
if we need to have local copies

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();