fixed a msg corruption in broadcast
[charm.git] / src / arch / util / machine-broadcast.c
index 523b9b6ff9870b4d6c989b65c7dbb87e4fc24660..b53d7592c95dcd9a812a51bf59ea0be8817c414c 100644 (file)
@@ -47,13 +47,13 @@ static INLINE_KEYWORD void processProcBcastMsg(int size, char *msg) {
      */
     CmiAssert(CMI_DEST_RANK(msg)==0);
     /*CmiPushPE(CMI_DEST_RANK(msg), msg);*/
-    CmiPushPE(0, msg);
 
 #if CMK_BROADCAST_SPANNING_TREE
     SendSpanningChildrenProc(size, msg);
 #elif CMK_BROADCAST_HYPERCUBE
     SendHyperCubeProc(size, msg);
 #endif
+    CmiPushPE(0, msg);
 
 }