Skip to content

Commit 48aef8a

Browse files
authored
Create submitjob.sh
1 parent dacb18a commit 48aef8a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

submitjob.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
# Submit this script using this command:
3+
# qsub -v ver=nothing submitjob.sh
4+
# ...where you replace 'nothing' with the name of the binary ('openmp',
5+
# 'parallel', or anything else that it is named)
6+
# Then 'ver' (short for version) becomes an environment
7+
# variable, available to this script as '$ver' below.
8+
9+
#PBS -P w28
10+
#PBS -q normalsl
11+
# -l other=hyperthread
12+
#PBS -l ncpus=8
13+
#PBS -l mem=16GB
14+
#PBS -l walltime=2:00:00
15+
#PBS -l wd
16+
#PBS -l jobfs=2GB
17+
18+
#PBS -m abe
19+
20+
ulimit -s unlimited
21+
export OMP_NUM_THREADS=8 # <-- Important
22+
export DIROUT=`pwd`/OutputV8.$PBS_JOBID # <-- Dir where to put the results
23+
24+
mkdir $DIROUT
25+
module load intel-fc/2019.3.199
26+
module load netcdf
27+
module load intel-mkl
28+
29+
##cd $PBS_JOBFS
30+
31+
cp QIBT_exp04_*.f90 $DIROUT
32+
cp $ver.sh $DIROUT
33+
cp Comp*.sh $DIROUT
34+
./$ver 1 2 1979 2 2 1979 $PBS_JOBFS/ # drier day
35+
#./$ver 5 2 2011 6 2 2011 $PBS_JOBFS/ # rainy day
36+
37+
gprof -l ./$ver > $ver.prof.1.out
38+
cp $PBS_JOBFS/* $DIROUT
39+
mv $ver.prof.1.out $DIROUT
40+
41+
mv gmon.out $DIROUT
42+
mv $ver.prof.1.out $DIROUT

0 commit comments

Comments
 (0)