implemented CmiBarrier using elan_sync call.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 15 Oct 2004 02:26:40 +0000 (02:26 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 15 Oct 2004 02:26:40 +0000 (02:26 +0000)
src/arch/elan/machine.c

index b5c81402d4d5db54364a70d6217f08fa87bf42a9..27ad6a105fa7f6595763ec545fccbcdc0fd4147e 100644 (file)
@@ -1776,6 +1776,18 @@ void CmiFreeListSendFn(int npes, int *pes, int len, char *msg)
 }
 #endif 
 
+void CmiBarrier()
+{
+    elan_gsync(elan_base->allGroup);
+}
+
+/* a simple barrier - everyone sends a message to pe 0 and go on */
+/* it is ok here since we have real elan barrier */
+void CmiBarrierZero()
+{
+    elan_gsync(elan_base->allGroup);
+}
+
 #if CMK_PERSISTENT_COMM
 #include "persistent.c"
 #endif