fixed the compiling errors reported by gnu compiler on Intrepid
authorChao Mei <chaomei2@illinois.edu>
Tue, 7 Jun 2011 14:34:50 +0000 (09:34 -0500)
committerChao Mei <chaomei2@illinois.edu>
Tue, 7 Jun 2011 14:34:50 +0000 (09:34 -0500)
src/arch/bluegenep/machine.c

index 44559a63afbb84387ed50075e7587f6fb762a95a..ce1e7dadbbdd23ab98dfa3ce07a762c0934b13f8 100644 (file)
@@ -833,9 +833,9 @@ static void MachineInitForDCMF(int argc, char **argv, int *numNodes, int *myNode
 #if !CMK_SMP_NO_COMMTHD
     actualNodeSize++; //considering the extra comm thread
 #endif
-
+    int i;
     procState = (ProcState *)CmiAlloc((actualNodeSize) * sizeof(ProcState));
-    for (int i=0; i<actualNodeSize; i++) {
+    for (i=0; i<actualNodeSize; i++) {
         /*    procState[i].sendMsgBuf = PCQueueCreate();   */
         procState[i].recvLock = CmiCreateLock();
         procState[i].bcastLock = CmiCreateLock();
@@ -906,6 +906,7 @@ void CmiSyncListSendFn(int npes, int *pes, int size, char *msg) {
  * less than 10 according to Sameer Kumar. So it is off in
  * default.
  */
+#undef OPTIMIZED_MULTICAST
 #define OPTIMIZED_MULTICAST  0
 
 #if OPTIMIZED_MULTICAST