03/28/2020, 5:59 AM
Note that because of Chapel’s global namespace and global-view arrays, a change to a domain declaration like thisis the only thing required to convert a shared-memory parallel program into one that supports distributed-memoryexecution. Forall-loops over distributed domains/arrays are typically implemented such that each locale iterates overthe indices/elements that it owns locally, providing a natural model for locality.
The following config const specifies whether or not the locale name should be printed (for ease-of-testing purposes); the default can be overridden on the execution command line (e.g., --printLocaleName=false).
config const printLocaleName = true;