annotate plinksJob.sh @ 185:acae526510e2

too many overdue updates to break down
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 06 Dec 2023 13:38:58 +0000
parents 29263ba42361
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/bash
12
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
2 # Usage: qsub -v t1=1stTar,tn=numTars plinksJob.sh
0
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 #PBS -l select=2:ncpus=36
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 #PBS -l place=exclhost
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 #PBS -l walltime=08:00:00
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 #PBS -V
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 #PBS -A dc007
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 #PBS -N plinks
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9
11
b0d9fe66ce8a give up on mpiexec_mpt
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 8
diff changeset
10 #module load mpt
0
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12 cd ${PBS_O_WORKDIR}
12
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
13 ((n1=tn/2))
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
14 ((s1=t1))
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
15 ((s2=t1+n1))
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
16 ((e1=s2-1))
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
17 ((e2=s1+tn-1))
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
18 echo $(seq --format="%03.0f" $s1 $e1),$(seq --format="%03.0f" $s2 $e2)
0
65a56c0d1c1f bolting the barn door...
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
19
12
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
20 bin/plinksMaster.sh $s1 $e1 $s2 $e2
29263ba42361 add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 11
diff changeset
21