allow non-smp version to safely include this file. In non-smp, CmiMyNodeSize
authorFilippo Gioachin <gioachin@illinois.edu>
Wed, 6 Apr 2005 08:15:06 +0000 (08:15 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Wed, 6 Apr 2005 08:15:06 +0000 (08:15 +0000)
is hardcoded to 1 and the other variable is not defined. In smp they are
hardcoded as the same thing.

src/arch/util/machine-smp.c

index 68a3b3164bf158d1d3c7ef77a6190a37774b373f..86e907ac3b6371e36880252826fad167262c69e1 100644 (file)
@@ -531,7 +531,7 @@ void CmiStateInit(int pe, int rank, CmiState state)
   MACHSTATE(4,"StateInit")
   state->pe = pe;
   state->rank = rank;
-  if (rank==_Cmi_mynodesize) return; /* Communications thread */
+  if (rank==CmiMyNodeSize()) return; /* Communications thread */
   state->recv = PCQueueCreate();
   state->localqueue = CdsFifo_Create();
   CmiIdleLock_init(&state->idle);