Skip to Content.
Sympa Menu

charm - Re: [charm] [EXTERNAL] Re: Compare elements of chare array?

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] [EXTERNAL] Re: Compare elements of chare array?


Chronological Thread 
  • From: "Mitchell, John A" <jamitch AT sandia.gov>
  • To: "charm AT lists.cs.illinois.edu" <charm AT lists.cs.illinois.edu>
  • Cc: "mikida2 AT illinois.edu" <mikida2 AT illinois.edu>
  • Subject: Re: [charm] [EXTERNAL] Re: Compare elements of chare array?
  • Date: Thu, 30 Mar 2017 19:25:44 +0000
  • Accept-language: en-US

Thanks Mike.


Actually -- just noticed that I have typo in question below.  Should be:


ProxyElement_A a=...;

ProxyElement_A b=...;


My use case is still in development but here goes:


A chare class "Parent" instance "P" stores 2 different proxies "left" and "right" (for two different chares) of chare class Child;


A Child instance C1 sends a message to its parent P which will message it children through its 'left' and 'right' proxies -- however, I don't want to message the child C1.


Does that make sense?


Thanks,

John



 



From: Mikida, Eric P <mikida2 AT illinois.edu>
Sent: Thursday, March 30, 2017 11:54 AM
To: Mitchell, John A
Cc: charm AT lists.cs.illinois.edu
Subject: [EXTERNAL] Re: [charm] Compare elements of chare array?
 
This response is for both of your questions regarding proxy equality. There is currently not a straightforward way to compare proxies, but it is something that is pretty straightforward to implement, so we are working on a quick implementation now and we will tell you when we get something working.

Out of curiousity, what is the use case you have for needing to compare proxies in this way?

Thanks
Eric

On Mar 30, 2017, at 11:42 AM, Mitchell, John A <jamitch AT sandia.gov> wrote:

Hi,

If I have two different element proxies of a 1D chare array;  Is there a way to tell if they refer to the same chare element from an array?

ProxyElement_A a=...;
ProxyElement_B b=...;

Thanks,
John







Archive powered by MHonArc 2.6.19.

Top of Page