-
Notifications
You must be signed in to change notification settings - Fork 69
/
job_script_MOAB
42 lines (32 loc) · 1.09 KB
/
job_script_MOAB
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
#!/bin/bash
###Sample (e.g. for Cosmos computer)
###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
export OMP_NUM_THREADS=##OMP##
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## omplace -nt ##OMP## ##PROGRAM## ##INI## > ./scripts/##INIBASE##.log 2>&1 ##
### qsub command to use when submitting
##DEFAULT_qsub: msub ##
##DEFAULT_queue: super2 ##
##DEFAULT_qdel: canceljob ##
###put the generated run commands here
##COMMAND##
#wait for processes to finish
wait