fix a compilation error for non-smp
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 14 Oct 2011 16:50:23 +0000 (09:50 -0700)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 14 Oct 2011 16:50:23 +0000 (09:50 -0700)
src/arch/mpi/machine.c

index e7f14237d7fb6ea06fd702499ea9ac9c15625882..b42e2acbaed3d9d6f31b18ad5d0a0ce78b6380eb 100644 (file)
@@ -829,7 +829,7 @@ static void AdvanceCommunicationForMPI() {
 static void MachinePostNonLocalForMPI() {
 #if !CMK_SMP
     if (no_outstanding_sends) {
 static void MachinePostNonLocalForMPI() {
 #if !CMK_SMP
     if (no_outstanding_sends) {
-        while (MsgQueueLen>0) {
+        while (CpvAccess(MsgQueueLen)>0) {
             AdvanceCommunicationForMPI();
         }
     }
             AdvanceCommunicationForMPI();
         }
     }