charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Phil Miller <unmobile AT gmail.com>
- To: Jozsef Bakosi <jbakosi AT gmail.com>
- Cc: charm AT cs.uiuc.edu
- Subject: Re: [charm] Array placement using map objects
- Date: Sat, 30 Apr 2016 18:28:30 -0500
CkArrayOptions actually conveys the number of initial elements requested. We made that shift from an int to allow for any dimensions (and stride, actually, for sparse regular arrays). We apparently neglected to note that was a public API. We'll definitely update the documentation.
If it fits, we may also add a suitable overload to restore compatibility with the older documented behavior.
Thanks for a good question.
Phil
On Apr 30, 2016 3:22 PM, "Jozsef Bakosi" <jbakosi AT gmail.com> wrote:
Hi folks,I've just updated to 6.7.1 and have some code for custom array element placement using map objects that now breaks and I'm not sure how to fix it.I used to override CkArrayMap's populateInitial() withvoid populateInitial( int, CkArrayIndex& idx, void *msg, CkArrMgr *mgr ) override;which now breaks, because it expects CkArrayOptions& as its 2nd argument:ck-core/cklocation.h, line 96:virtual void populateInitial(int arrayHdl,CkArrayOptions& options,void *ctorMsg,CkArrMgr *mgr);The documentation, however, now recommends usingvirtual void populateInitial(int arrayHdl, int numInitial, void *msg, CkArrMgr *mgr)but the only overload in CkArrayMap is the one accepting CkArrayOptions& as its 2nd argument above.How should I get the number of initial elements in my override of populateInitial()?Thanks,Jozsef
- [charm] Array placement using map objects, Jozsef Bakosi, 04/30/2016
- Message not available
- Message not available
- Re: [charm] Array placement using map objects, Phil Miller, 04/30/2016
- Re: [charm] Array placement using map objects, Jozsef Bakosi, 04/30/2016
- Re: [charm] Array placement using map objects, Phil Miller, 04/30/2016
- Message not available
- Message not available
Archive powered by MHonArc 2.6.16.