always declare NodeState for immeidate msg even for non-smp.
authorGengbin Zheng <gzheng@bp-login1.(none)>
Sat, 24 Apr 2010 13:54:39 +0000 (08:54 -0500)
committerGengbin Zheng <gzheng@bp-login1.(none)>
Sat, 24 Apr 2010 13:54:39 +0000 (08:54 -0500)
src/arch/lapi/machine.c

index f850366ccd25e4d04cf305113539822522807af2..f7d02e871f3634111a80322bdd1a00021029f774 100755 (executable)
@@ -418,9 +418,7 @@ char *CopyMsg(char *msg, int len) {
     return copy;
 }
  
-#if CMK_NODE_QUEUE_AVAILABLE
 CsvDeclare(CmiNodeState, NodeState);
-#endif
 
 #if CMK_IMMEDIATE_MSG
 #include "immediate.c"
@@ -2100,10 +2098,10 @@ void ConverseInit(int argc, char **argv, CmiStartFn fn, int usched, int initret)
             sleep(30);
     }
 
-#if CMK_NODE_QUEUE_AVAILABLE
     CsvInitialize(CmiNodeState, NodeState);
     CmiNodeStateInit(&CsvAccess(NodeState));
 
+#if CMK_NODE_QUEUE_AVAILABLE
     CsvInitialize(PCQueue, nodeBcastQ);
     CsvAccess(nodeBcastQ) = PCQueueCreate();
 #endif