charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Nicolas Bock <nicolasbock AT gmail.com>
- To: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
- Subject: [charm] local access to chare, race condition
- Date: Wed, 11 Sep 2013 13:18:27 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Hi,
suppose I have a chare array A, and a single chare B. The A chares calculate something and want to add their results to some data in B. This can be done by calling
CProxy_Data B;
B.add(data);
inside a method of A. As far as I understand it, the RTS guarantees that this will not lead to a data race since it will not allow A::add() to execute in parallel. But now suppose I check whether A is local to the B chares and do this instead:
BLocal = A.ckLocal();
if(BLocal != NULL) BLocal->add(data);
will this not result in a data race if there are more than one B chare on a node?
Thanks,
nick
- [charm] local access to chare, race condition, Nicolas Bock, 09/11/2013
- Re: [charm] local access to chare, race condition, Phil Miller, 09/11/2013
- Re: [charm] local access to chare, race condition, Nicolas Bock, 09/11/2013
- Re: [charm] local access to chare, race condition, Phil Miller, 09/11/2013
Archive powered by MHonArc 2.6.16.