charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Phil Miller <mille121 AT illinois.edu>
- To: Jozsef Bakosi <jbakosi AT gmail.com>
- Cc: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
- Subject: Re: [charm] Delete a group
- Date: Fri, 27 Jan 2017 16:16:37 -0600
If you broadcast a ckdestroy() entry method invocation to the whole group, the element on each PE will be destroyed. I should double check, but I really hope we special-case that so that one cannot call ckdestroy() on just a single group element.
Code for this should look something like
CProxy_MyGroup groupProxy;
// . . .
groupProxy.ckDestroy();
On Fri, Jan 27, 2017 at 4:10 PM, Jozsef Bakosi <jbakosi AT gmail.com> wrote:
Hi folks,Here is a potentially easy question that I nevertheless fail to answer based on the online documentation.If I no longer need a chare group, how do I delete all of its elements? (The goal is to call its destructors, thus freeing up memory.)I see that CkDestroy() can be used to individually delete an element of a chare array and I presume the same might exist for groups so I can loop over them, but is there a simpler (and potentially more efficient) call to get rid of an entire group?Thanks,Jozsef
- [charm] Delete a group, Jozsef Bakosi, 01/27/2017
- Re: [charm] Delete a group, Phil Miller, 01/27/2017
- Re: [charm] Delete a group, Jozsef Bakosi, 01/27/2017
- Re: [charm] Delete a group, Phil Miller, 01/27/2017
- Re: [charm] Delete a group, Jozsef Bakosi, 01/27/2017
- Re: [charm] Delete a group, Phil Miller, 01/27/2017
- Re: [charm] Delete a group, Jozsef Bakosi, 01/27/2017
- Re: [charm] Delete a group, Phil Miller, 01/27/2017
Archive powered by MHonArc 2.6.19.