For bigsim, uses BlockMap instead of PropMap which has P^2 memory usage.
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 13 Jan 2009 07:34:54 +0000 (07:34 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 13 Jan 2009 07:34:54 +0000 (07:34 +0000)
src/libs/ck-libs/tcharm/tcharm.C

index c3d317439850efd36ebcd712a54ef03d4fe7fc15..2b66cbb114cf35191370b9e610326940252dabe9 100644 (file)
@@ -659,7 +659,11 @@ static CProxy_TCharm TCHARM_Build_threads(TCharmInitMsg *msg)
   CkArrayOptions opts(msg->numElements);
   CkAssert(CkpvAccess(mapCreated)==1);
   if(mapping==NULL){
   CkArrayOptions opts(msg->numElements);
   CkAssert(CkpvAccess(mapCreated)==1);
   if(mapping==NULL){
+#if CMK_BLUEGENE_CHARM
+    mapID=CProxy_BlockMap::ckNew();
+#else
     mapID=CkCreatePropMap();
     mapID=CkCreatePropMap();
+#endif
   }else if(0==strcmp(mapping,"BLOCK_MAP")){
     mapID=CProxy_BlockMap::ckNew();
   }else if(0==strcmp(mapping,"RR_MAP")){
   }else if(0==strcmp(mapping,"BLOCK_MAP")){
     mapID=CProxy_BlockMap::ckNew();
   }else if(0==strcmp(mapping,"RR_MAP")){