charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "Kale, Laxmikant V" <kale AT illinois.edu>
- To: "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
- Cc: "Rock, Joseph William" <jwrock2 AT illinois.edu>
- Subject: [charm] sdag forall bug?
- Date: Thu, 19 Dec 2013 01:04:23 +0000
- Accept-language: en-US
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Joseph, I am posting this to the Charm++ mailing list (please post such bug reports there in future). -- Sanjay
----------------------
Dear Professor Kale,
While working on my project, I noticed a neat little bug with the SDAG 'forall' construct.when entryMethodA(int totalIterations) {
forall [i] (1 : totalIterations, 1) {
//do work here
}
}
The variable 'totalIterations' should be in scope for the 'forall' construct. But when we compile, the .def.h code gets a little bit wrong. It'll throw an error like "totalIterations" not in scope.
The offending line looks like: int __first = (1), __last = (totalIterations), __stride = (1);
The offending line looks like: int __first = (1), __last = (totalIterations), __stride = (1);
This is the 'forall''s iteration construct. It appears that there is direct textual substitution from the SDAG code to the generated .def.h code.
Yet, the closures (such as entryMethodA) are passed to this method as parameters. Thus, the 'forall' generated code has access to the parameter called totalIterations. Instead of "totalIterations", though,
it would be something like "gen0->getP0()"; (gen0 is the closure object representing the "when entryMethodA" scope)
Were 'forall's intended to have dynamic iteration? Given that it has access to its parent closures' parameters, I think it is in the realm of possibility.
---
Laxmikant (Sanjay) Kale http://charm.cs.uiuc.edu
Professor, Computer Science kale AT illinois.edu
201 N. Goodwin Avenue Ph: (217) 244-0094
Urbana, IL 61801-2302 FAX: (217) 265-6582
- [charm] sdag forall bug?, Kale, Laxmikant V, 12/18/2013
- Re: [charm] [ppl] sdag forall bug?, Phil Miller, 12/18/2013
- Re: [charm] [ppl] sdag forall bug?, Jonathan Lifflander, 12/19/2013
- Re: [charm] [ppl] sdag forall bug?, Phil Miller, 12/18/2013
Archive powered by MHonArc 2.6.16.