forked from cmbant/CosmoMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_script_UGE
44 lines (32 loc) · 1.08 KB
/
job_script_UGE
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
37
38
39
40
41
42
43
44
#!/bin/bash
###Sample job template for Univa Grid Engine cluster (e.g. Apollo in Sussex)
###Python script replace ##..## placeholders with values given python script
#$ -l h_rt=##WALLTIME## # wall clock time required
#$ -jc ##JOBCLASS##
#$ -cwd
#$ -V
#$ -N ##JOBNAME##
#$ -q ##QUEUE##
#$ -pe openmpi_mixed_##PPN## ##NUMSLOTS##
cd ##ROOTDIR##
echo Running on host `hostname`
echo Time is `date`
echo Directory is `pwd`
echo Job ID is $PBS_JOBID
#for PICO runs also need python (check path also set correctly)
#not needed otherwise
#module load python/2.7.3
export OMP_NUM_THREADS=##OMP##
###set things to be used by the python script, which extracts text from here with ##XX: ... ##
### command to use for each run in the batch
##RUN: time mpirun -np ##NUMMPI## ##PROGRAM## ##INI## > ./scripts/##INIBASE##.log 2>&1 ##
### qsub command to use when submitting
##DEFAULT_qsub: qsub ##
##DEFAULT_qdel: qdel ##
#These defaults specific to Sussex apollo
##DEFAULT_queue: mps.q ##
##DEFAULT_jobclass: mps.medium ##
###put the generated run commands here
##COMMAND##
#wait for processes to finish
wait