split entry methods for array cknew (for bigsim)
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 26 Aug 2008 21:43:50 +0000 (21:43 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 26 Aug 2008 21:43:50 +0000 (21:43 +0000)
src/ck-core/ckarray.C
src/ck-core/cklocation.C

index 82e5c08d8357158388600ab5e8ab8eeb3e3506ae..9805ed5ddb7f3450f97fb87d85109175648a138a 100644 (file)
@@ -694,6 +694,9 @@ void CkArray::insertInitial(const CkArrayIndex &idx,void *ctorMsg, int local)
        if (local) {
          int onPe=CkMyPe();
          prepareCtorMsg(m,onPe,idx);
+#if CMK_BLUEGENE_CHARM
+          BgEntrySplit("split-array-new");
+#endif
          insertElement(m);
        }
        else {
@@ -960,7 +963,7 @@ void CkArray::recvBroadcast(CkMessage *m)
        while (NULL!=(el=elements->next(idx))) {
                broadcaster->deliver(msg,el);
 #if CMK_BLUEGENE_CHARM
-                BgEntrySplit();
+                BgEntrySplit("split-broadcast");
 #endif
        }
        if (! isAnytimeMigration) {
index 968e63bb94a4d05d1642c8f94f0e953e6d3fe5d4..77db978f37236ba5b65a5b733b3ea8179fb8f4cb 100644 (file)
@@ -203,6 +203,10 @@ void CkArrayMap::populateInitial(int arrayHdl,CkArrayIndexMax& numElements,void
            how many of them are used */
         CKARRAYMAP_POPULATE_INITIAL(procNum(arrayHdl,idx)==thisPe);
 
+#if CMK_BLUEGENE_CHARM
+        BgEntrySplit("split-array-new-end");
+#endif
+
        mgr->doneInserting();
        CkFreeMsg(ctorMsg);
 }