Hi Sara, None of the things you list below are possible, but depending on what you are trying to do, you may be able to simulate some of them.
Locales is just a (slightly special) Chapel array of locales, so you can do normal array things with it like make a copy, resize, reshape, etc. Any of these new arrays of locales can be used when creating a domain map (e.g., Block, Cyclic) using the targetLocales argument to the constructor. The resulting arrays will not be replicated as the Locales array is (that's part of being slightly special), so there will be performance implications, but if you really wanted to, you could do this by hand as we do in the module set up code. You can't add new locales once the program has started, but you could start out by using an array of locales that uses some subset of those in the Locales array. If any of the locales actually goes away due to failure or whatever, the Chapel program will fail in some unspecified way. You could imagine reassigning an existing array to one defined using a different domain map with a different targetLocales array as a reaction to a simulated locale loss. -- Sung On Mon, Aug 11, 2014 at 04:23:59AM +0000, Sara Salem Hamouda wrote: > Hi Chapel Users, > > > I have the following questions about Chapel: > > - Does Chapel allow for adding new locales during the run time? > > - Can Locales be distributed over different number of nodes during the run > time? > > - Can a Chapel program continue running despite the loss of some locales (due > to node crash for example)? > > - Is there an API that can be used to simulate locale loss (Locale.kill() for > example)? > > > Thanks a lot, > Sara > ------------------------------------------------------------------------------ > _______________________________________________ > Chapel-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/chapel-users ------------------------------------------------------------------------------ _______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users
