changed to call BgSyncListSend for multicast.
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 9 Dec 2004 18:10:55 +0000 (18:10 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 9 Dec 2004 18:10:55 +0000 (18:10 +0000)
src/conv-ldb/cldb.bluegene.c

index 7c8fa37e903ea167e9b8eb8063c65a242c818e66..c93571ff2cfa11da9d157d13c0193b2eaea24bd5 100644 (file)
@@ -108,11 +108,7 @@ void CldEnqueueMulti(int npes, int *pes, void *msg, int infofn)
   CldSwitchHandler((char *)msg, CpvAccess(CldHandlerIndex));
   CmiSetInfo(msg,infofn);
 */
-  for(i=0;i<npes;i++) {
-    char *dupmsg = CmiCopyMsg(msg, len);
-    BGSENDPE(pes[i], dupmsg, len);
-  }
-  CmiFree(msg);
+  BgSyncListSend(npes, pes, CmiGetHandler(msg), LARGE_WORK, len, msg);
 }
 
 void CldEnqueue(int pe, void *msg, int infofn)