-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMW-batch.sh
37 lines (25 loc) · 1.01 KB
/
MW-batch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash -l
# Run using the following command:
# qsub -t 1-[number of jobs] MW-batch.sh
# Set SCC project
#$ -P arithgeo
# Specify hard time limit for the job.
# The job will be aborted if it runs longer than this time.
# The default time is 12 hours
#$ -l h_rt=3:00:00
# Require avx instruction set
#$ -l avx
# Run only on nodes with Magma license
#$ -l magma
# Join stdout and stderr streams
#$ -j y
# Specify location of stdout stream
#$ -o /projectnb/arithgeo/drhast/twocover-results/stdout
# Send an email when the job finishes or if it is aborted (by default no email is sent).
#$ -m ea
module load sagemath/9.3
module load magma_usyd/2.26-10
# Use the SGE_TASK_ID environment variable to select the appropriate input file from bash array
# Bash array index starts from 0, so we need to subtract one from SGE_TASK_ID value
index=$(( $SGE_TASK_ID - 1 ))
sage --python ./twocover-processor.sage.py --index $index --output_directory /projectnb/arithgeo/drhast/twocover-results --stages search,locsolv,ainv,mw,reduce