forked from williamjameshandley/CosmoChord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_script
47 lines (35 loc) · 1.16 KB
/
job_script
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
45
#!/bin/bash
###Sample (e.g. PBS cluster)
###Python script replace ##..## placeholders with values given python script
#PBS -q ##QUEUE##
#PBS -l nodes=##NUMNODES##:ppn=##PPN## # No. processors required
#PBS -l walltime=##WALLTIME## # wall clock time required
#PBS -N ##JOBNAME##
#PBS -V
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##
#you may not need these
export I_MPI_PIN=##ONERUN##
export I_MPI_PIN_DOMAIN=omp:compact
export I_MPI_PIN_ORDER=scatter
export I_MPI_CPUINFO=proc
export KMP_LIBRARY=throughput
export KMP_STACKSIZE=1gb
export OMP_NESTED=FALSE
###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 ##
###put the generated run commands here
##COMMAND##
#wait for processes to finish
wait