annotate hdrJob.sh @ 159:c3c3dd60b8a8

demo of slurm usage using cdx2tsv.py
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 06 Jul 2022 18:07:34 +0100
parents a96fb2c26c80
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/bash
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 # Usage: qsub -v t1=1stTar,tn=numTars plinksJob.sh
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 #PBS -l select=2:ncpus=36
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 #PBS -l place=exclhost
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 #PBS -l walltime=08:00:00
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 #PBS -V
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 #PBS -A dc007
15
a96fb2c26c80 works after minor tweaks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 14
diff changeset
8 #PBS -N hdr
14
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10 #module load mpt
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12 cd ${PBS_O_WORKDIR}
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13 ((n1=tn/2))
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
14 ((s1=t1))
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
15 ((s2=t1+n1))
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
16 ((e1=s2-1))
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
17 ((e2=s1+tn-1))
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
18 echo $(seq --format="%03.0f" $s1 $e1),$(seq --format="%03.0f" $s2 $e2)
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
19
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
20 bin/hdrMaster.sh $s1 $e1 $s2 $e2
9a1de2c4ffe3 modelled on plinks
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
21