the warnings need to be printed from pe 0 only
authorAbhinav Bhatele <bhatele@illinois.edu>
Mon, 29 Jun 2009 22:39:54 +0000 (22:39 +0000)
committerAbhinav Bhatele <bhatele@illinois.edu>
Mon, 29 Jun 2009 22:39:54 +0000 (22:39 +0000)
src/libs/ck-libs/tcharm/tcharm.C

index bbcc720110f98f34c8b860b24d945a5c8000036d..d99bb1447cf4d6820ddb1468ff32ad4cb89ac1cf 100644 (file)
@@ -806,8 +806,10 @@ static void checkAddress(void *data)
           if (!CmiIsomallocInRange(data))
            CkAbort("The UserData you register must be allocated on the stack!\n");
         }
-        else 
-          CkPrintf("Warning> checkAddress failed because isomalloc not supported.\n");
+        else {
+         if(CkMyPe() == 0)
+           CkPrintf("Warning> checkAddress failed because isomalloc not supported.\n");
+       }
 }
 
 /* Old "register"-based userdata: */
@@ -858,7 +860,8 @@ CDECL void TCHARM_Migrate(void)
 {
        TCHARMAPI("TCHARM_Migrate");
        if (CthMigratable() == 0) {
-          CkPrintf("Warning> thread migration is not supported!\n");
+         if(CkMyPe() == 0)
+           CkPrintf("Warning> thread migration is not supported!\n");
           return;
         }
        TCharm::get()->migrate();