pipelined allreduce for large messages implemented, use -D_PIPELINED_ALLREDUCE_ to...
[charm.git] / src / ck-core / ckarrayindex.h
index 20e48afcef3b94d8f8027a9e733c0db957448ac3..cb2b1927c347dbb2305f1063415c884029c61372 100644 (file)
@@ -67,6 +67,9 @@ class CkArrayIndex: public CkArrayIndexBase
     public:
         /// Default
         CkArrayIndex() { nInts=0; dimension=0; for (int i=0; i<CK_ARRAYINDEX_MAXLEN; i++) index[i] = 0; }
+#ifdef _PIPELINED_ALLREDUCE_
+       CkArrayIndex(int idx) {init(1,1,idx);};
+#endif
         /// Return a pointer to the actual index data
         int *data(void)             {return index; }
         /// Return a const pointer to the actual index data