Chapel: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Marked this version for translation)
No edit summary
Line 18: Line 18:


<!--T:7-->
<!--T:7-->
On Cedar and Graham, single-locale (shared-memory) Chapel is implemented as a module. For testing, you can use <code>salloc</code> to run Chapel codes in serial:
For now, single-local Chapel on Compute Canada's general purpose clusters (Cedar, Graham and Béluga) is installed in a non-central location and can be initialized with a script. For example, you can use <code>salloc</code> to test Chapel codes in serial:
</translate>
</translate>
{{Commands
{{Commands
|module load gcc chapel-single/1.15.0
|source /home/razoumov/startSingleLocale.sh
|salloc --time=0:30:0 --ntasks=1 --mem-per-cpu=3500 --account=def-someprof
|salloc --time=0:30:0 --ntasks=1 --mem-per-cpu=3500 --account=def-someprof
|chpl test.chpl -o test
|chpl test.chpl -o test
Line 31: Line 31:
</translate>
</translate>
{{Commands
{{Commands
|module load gcc chapel-single/1.15.0
|source /home/razoumov/startSingleLocale.sh
|salloc --time=0:30:0 --ntasks=1 --cpus-per-task=3 --mem-per-cpu=3500 --account=def-someprof
|salloc --time=0:30:0 --ntasks=1 --cpus-per-task=3 --mem-per-cpu=3500 --account=def-someprof
|chpl test.chpl -o test
|chpl test.chpl -o test
Line 43: Line 43:


<!--T:11-->
<!--T:11-->
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 a cluster. Since different Compute Canada clusters employ different physical interconnects, we do not have one multi-locale Chapel for all 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:


</translate>
</translate>
Line 66: Line 66:
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:
{{Commands  
{{Commands  
|module unload chapel-single
|source /home/razoumov/startMultiLocale.sh
|. /home/razoumov/startMultiLocale.sh
|salloc --time{{=}}0:30:0 --nodes{{=}}4 --cpus-per-task{{=}}3 --mem-per-cpu{{=}}3500 --account{{=}}def-someprof
|salloc --time{{=}}0:30:0 --nodes{{=}}4 --cpus-per-task{{=}}3 --mem-per-cpu{{=}}3500 --account{{=}}def-someprof
}}
}}
cc_staff
292

edits

Navigation menu