fixed smp version and VMI exit problem.
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 15 Oct 2007 02:20:44 +0000 (02:20 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 15 Oct 2007 02:20:44 +0000 (02:20 +0000)
src/arch/mpi/machine.c

index 7a4c1d53e93fdf291b326f531da35099fb8a7367..3126b91f6fa93584664a20b6b36bb5a8db5e5524 100644 (file)
@@ -1014,7 +1014,12 @@ static void CommunicationServer(int sleepTime)
     }
 #endif
     MACHSTATE(2, "} CommunicationServer EXIT");
+#if CMK_MPI_VMI
+    /* vmi mpi always return exit status 255 when calling MPI_Finalize() which broke Make */
+  exit(0);
+#else
     MPI_Finalize();
+#endif
     exit(0);
   }
 }
@@ -1779,7 +1784,7 @@ void ConverseExit(void)
     CmiAbort("ConverseExit: MPI_Barrier failed!\n");
 
   ConverseCommonExit();
-#if CMK_VMI
+#if CMK_MPI_VMI
     /* vmi mpi always return exit status 255 */
   exit(0);
 #else