AMPI: always assume no anytime migration and static insertion.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 14 Mar 2012 07:29:44 +0000 (00:29 -0700)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 14 Mar 2012 07:29:44 +0000 (00:29 -0700)
since AMPI collectives are synchronous, so there is no anytime migration.

src/libs/ck-libs/ampi/ampi.C

index 888f58211a2527f7736f40b7e2520549a4476875..c86c071dfeeb71933286a213f8b6aaac7a9a5fee 100644 (file)
@@ -546,6 +546,10 @@ static void ampiNodeInit(void)
   AMPI_threadstart_idx = TCHARM_Register_thread_function(AMPI_threadstart);
 
   nodeinit_has_been_called=1;
+
+   // ASSUME NO ANYTIME MIGRATION and STATIC INSERTON
+  _isAnytimeMigration = false;
+  _isStaticInsertion = true;
 }
 
 #if PRINT_IDLE
@@ -790,7 +794,6 @@ static ampi *ampiInit(char **argv)
       CkpvAccess(conv_com_object).doneCreating();
 #else
       arr=CProxy_ampi::ckNew(parent,worldComm,opts);
-
 #endif
 
       //Broadcast info. to the mpi_worlds array