charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "Van Der Wijngaart, Rob F" <rob.f.van.der.wijngaart AT intel.com>
- To: Phil Miller <mille121 AT illinois.edu>, "Kale, Laxmikant V" <kale AT illinois.edu>
- Cc: Nikhil Jain <nikhil.life AT gmail.com>, "Kunzman, David M" <david.m.kunzman AT intel.com>, "Hammond, Jeff R" <jeff.r.hammond AT intel.com>, "Mattson, Timothy G" <timothy.g.mattson AT intel.com>, Charm Mailing List <charm AT cs.illinois.edu>
- Subject: Re: [charm] Global variables in Charm++
- Date: Mon, 29 Sep 2014 22:17:37 +0000
- Accept-language: en-US
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Thanks, Phil. This is actually identical to the workaround proposed by Gengbin. It would definitely work, though I already had to do the pre-work of linearizing the 2D weight array.
Rob
From: unmobile AT gmail.com [mailto:unmobile AT gmail.com]
On Behalf Of Phil Miller
// In WEIGH_DIM.h: #define WEIGHT_DIM ((2*RADIUS+1)*(2*RADIUS+1)) // In foo.ci: include "WEIGHT_DIM.h"; readonly double WEIGHT[WEIGHT_DIM]; ====== I just tested that this compiles and links, and it should work fine, since Charm++ will see a simple 1D array. |
- Re: [charm] Global variables in Charm++, (continued)
- Re: [charm] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
- Re: [charm] Global variables in Charm++, Kunzman, David M, 09/29/2014
- Re: [charm] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
- Re: [charm] [ppl] Global variables in Charm++, Gengbin Zheng, 09/29/2014
- Re: [charm] [ppl] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
- Re: [charm] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
- Re: [charm] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
- Re: [charm] Global variables in Charm++, Kunzman, David M, 09/29/2014
- Re: [charm] Global variables in Charm++, Kunzman, David M, 09/29/2014
- Re: [charm] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
- Re: [charm] Global variables in Charm++, Van Der Wijngaart, Rob F, 09/29/2014
Archive powered by MHonArc 2.6.16.