Chapel: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 45: Line 45:
Installing multi-locale (distributed-memory) Chapel requires fine-tuning its launcher for the specific physical interconnect on the cluster. Since Compute Canada clusters Cedar and Graham employ two different physical interconnects, we do not have one multi-locale Chapel module for both machines. Instead, multi-locale Chapel has been compiled in a separate directory as an experimental setup on each system. You can test this setup with the following Chapel code printing basic information about the nodes available inside your job:
Installing multi-locale (distributed-memory) Chapel requires fine-tuning its launcher for the specific physical interconnect on the cluster. Since Compute Canada clusters Cedar and Graham employ two different physical interconnects, we do not have one multi-locale Chapel module for both machines. Instead, multi-locale Chapel has been compiled in a separate directory as an experimental setup on each system. You can test this setup with the following Chapel code printing basic information about the nodes available inside your job:


<!--T:12-->
</translate>
{{
{{
File
File
Line 61: Line 61:
   }
   }
}}
}}
<translate>


<!--T:13-->
Load Chapel and start an interactive job requesting four nodes and three cores on each node:
Load Chapel and start an interactive job requesting four nodes and three cores on each node:
{{Command |module unload chapel-single}}


module unload chapel-single
. /home/razoumov/startMultiLocale.sh
salloc --time=0:30:0 --nodes=4 --cpus-per-task=3 --mem-per-cpu=3500 --account=def-someprof
<!--T:15-->
Once the interactive job starts, you can compile and run your code from the prompt on the first allocated compute node:
Once the interactive job starts, you can compile and run your code from the prompt on the first allocated compute node:


chpl probeLocales.chpl -o probeLocales
chpl probeLocales.chpl -o probeLocales
./probeLocales -nl 4
./probeLocales -nl 4
<!--T:17-->
 
For production jobs, please write a Slurm submission script and submit your job with <code>sbatch</code> instead.
For production jobs, please write a Slurm submission script and submit your job with <code>sbatch</code> instead.
</translate>
</translate>
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu