added empty implementation for CmiBarrier and CmiBarrierZero as in the old one
authorChao Mei <chaomei2@illinois.edu>
Sat, 14 May 2011 21:30:07 +0000 (16:30 -0500)
committerChao Mei <chaomei2@illinois.edu>
Sat, 14 May 2011 21:30:07 +0000 (16:30 -0500)
src/arch/bluegenep/machine.c

index bb2ddfe186c9c0c81b4ed671da2d6e32064c39e8..0c169c307d78690c4395fce37aa5924ed9d4e357 100644 (file)
@@ -968,7 +968,17 @@ void CmiFreeListSendFn(int npes, int *pes, int size, char *msg) {
 /**************************  TIMER FUNCTIONS **************************/
 
 /************Barrier Related Functions****************/
 /**************************  TIMER FUNCTIONS **************************/
 
 /************Barrier Related Functions****************/
-
+/* Barrier related functions */
+/*TODO: does DCMF provide any Barrrier related functions ??? --Chao Mei */
+/* Barrier needs to be implemented!!! -Chao Mei */
+/* These two barriers are only needed by CmiTimerInit to synchronize all the
+   threads. They do not need to provide a general barrier. */
+int CmiBarrier() {
+    return 0;
+}
+int CmiBarrierZero() {
+    return 0;
+}
 
 #include "manytomany.c"
 
 
 #include "manytomany.c"