How to use Chapel

Software
Version
Cluster
Chapel
1.23.1
Dardel

You can find more information on chapel at https://chapel-lang.org/ Also you can find some nice information on how to develop using chapel… https://hpc-carpentry.github.io/hpc-chapel/

As an example, you can compile using Chapel like

$ ml PDC
$ ml chapel
$ chpl -o hello hello.chpl

For running chapel executable, you do not need to use srun as it will be executed within the executable. An example for a batchscript can be found below…

#!/bin/bash -l
#SBATCH -A 201X-X-XX
# 10 hours wall-clock time will be given to this job
#SBATCH -t 10:00:00
# Set the partition for your job.
#SBATCH -p main
# Number of nodes
#SBATCH --nodes=2
module add PDC
module add chapel
# -nl depicts the number of nodes chapel should run on
<name of executable> -nl 2

Disclaimer

PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.