Changed the start of notification msg sending from 0 to my immediate next neighbor...
authorChao Mei <chaomei2@illinois.edu>
Wed, 7 Mar 2012 22:29:40 +0000 (16:29 -0600)
committerChao Mei <chaomei2@illinois.edu>
Wed, 7 Mar 2012 22:29:40 +0000 (16:29 -0600)
NodeHelper.C

index 96fd87dec58e4db00f36f3db85610dd1bc83561f..5ea90732266eb6bb526515d692422a95df7849b4 100644 (file)
@@ -195,8 +195,11 @@ void FuncNodeHelper::parallelizeFunc(HelperFn func, int paramNum, void * param,
                                CmiPushPE(pe, (void *)(notifyMsg));    
                        }
                }else{
-                       for (int i=0; i<numHelpers; i++) {
-                               if (i!=CkMyRank()) CmiPushPE(i, (void *)(notifyMsg));            
+                       for (int i=CmiMyRank()+1; i<numHelpers; i++) {
+                               CmiPushPE(i, (void *)(notifyMsg));
+                       }
+                       for (int i=0; i<CmiMyRank(); i++) {
+                               CmiPushPE(i, (void *)(notifyMsg));
                        }
                }
        }else if(mode == NODEHELPER_PTHREAD){