fix +CmiNoProcForComThread warning by enable it when ppn is larger than physical...
authorYanhua Sun <sun51@illinois.edu>
Sat, 4 May 2013 03:46:05 +0000 (22:46 -0500)
committerYanhua Sun <sun51@illinois.edu>
Sat, 4 May 2013 03:46:05 +0000 (22:46 -0500)
src/ck-core/init.C

index d3bc3daa26dd2fc2dd4bb1ec0737693d8e110839..4ebbeac5a731d218df3b3e2ee080ab238c334090 100644 (file)
@@ -1271,8 +1271,9 @@ void _initCharm(int unused_argc, char **argv)
             int *pelist;
             int num;
             CmiGetPesOnPhysicalNode(0, &pelist, &num);
-            if (CkMyPe()==0 && !_Cmi_noprocforcommthread && num+num/CmiMyNodeSize() > CmiNumCores()) {
-                CkPrintf("\nCharm++> Warning: the number of SMP threads is greater than the number of physical cores, use +CmiNoProcForComThread runtime option.\n\n");
+            if (!_Cmi_noprocforcommthread && num+num/CmiMyNodeSize() > CmiNumCores()) {
+                //CkPrintf("\nCharm++> Warning: the number of SMP threads is greater than the number of physical cores, use +CmiNoProcForComThread runtime option.\n\n");
+                _Cmi_noprocforcommthread = 1;
             }
         }
 #endif