fixed a bug where in SMP version, only rank 0 checks and take away +CmiNoProcForComTh...
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 20 Jan 2009 17:33:27 +0000 (17:33 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 20 Jan 2009 17:33:27 +0000 (17:33 +0000)
onsistent across all ranks

src/conv-core/convcore.c

index 39d9089f5d053d570ad4f0a7265349d58b278a49..1d668eafd893dca9673d849443edd6bca182d95d 100644 (file)
@@ -2879,10 +2879,8 @@ void ConverseCommonInit(char **argv)
   CIdleTimeoutInit(argv);
   
 #if CMK_SHARED_VARS_POSIX_THREADS_SMP /*Used by the net-*-smp versions*/
-  if(CmiMyRank() == 0){
-       if(CmiGetArgFlagDesc(argv,"+CmiNoProcForComThread","Is there an extra processor for the communication thread on each node(only for net-smp-*) ?")){
-               _Cmi_noprocforcommthread=1;
-       }
+  if(CmiGetArgFlagDesc(argv,"+CmiNoProcForComThread","Is there an extra processor for the communication thread on each node(only for net-smp-*) ?")){
+    if(CmiMyRank() == 0) _Cmi_noprocforcommthread=1;
    }
 #endif
 #if CMK_MULTICORE