Mercurial > hg > cc > cirrus_home
annotate bin/test.sh @ 168:57cf91a0d97d
x
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 20 Jul 2022 19:46:51 +0100 |
parents | 3213a8bb2ed1 |
children |
rev | line source |
---|---|
25 | 1 #!/usr/bin/bash |
167
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
2 # Invoke this as e.g. sbatch --time=00:05:00 [--exclusive] --ntasks=6 -c 13 ~/bin/test.sh |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
3 # run _test.sh in parallel on 3 nodes, 2 tasks each |
147
11d973ecff4e
change test to use Master
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
26
diff
changeset
|
4 |
167
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
5 #SBATCH --time=00:01:00 |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
6 #SBATCH --partition=standard |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
7 #SBATCH --qos=standard |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
8 #SBATCH --account=ec184-guest |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
9 #SBATCH --job-name test |
147
11d973ecff4e
change test to use Master
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
26
diff
changeset
|
10 |
167
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
11 export W=/work/dc007/dc007 |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
12 |
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
13 echo $(date) Launching $SLURM_JOB_NUM_NODES nodes for test "$@" from $(hostname) to do $SLURM_NTASKS tasks, $SLURM_CPUS_PER_TASK cpus each |
147
11d973ecff4e
change test to use Master
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
26
diff
changeset
|
14 |
167
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
15 srun -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_test.sh "$@" |
147
11d973ecff4e
change test to use Master
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
26
diff
changeset
|
16 |
167
3213a8bb2ed1
new style batch jobs, see cirrus_work repo for _xxx.sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
147
diff
changeset
|
17 |