Cray Chapel on LRZ's HPC systems
A preview release of the reference implementation is available on some of the LRZ HPC systems.
Interactive testing
Please load the module
module load chapel
Then, the program
config const message = "Hello, world!",
printLocaleName = true;
coforall loc in Locales {
on loc {
var myMessage = message + " (from locale " + here.id + " of " + numLocales;
if (printLocaleName) then myMessage += " named " + loc.name;
myMessage += ")";
writeln(myMessage);
}
}
stored in hello-multiloc.chpl can then be compiled with
chpl -o hello.exe hello-multiloc.chpl
and then executed using multiple locales.
./hello.exe -nl 2
On the Linux Cluster, you need to set the following SLURM environment variable that specifies your time limit before executing your program:
export CHPL_LAUNCHER_WALLTIME=00:15:00