-
Notifications
You must be signed in to change notification settings - Fork 0
/
Run2ptPropisaac.csh
executable file
·80 lines (60 loc) · 1.55 KB
/
Run2ptPropisaac.csh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#! /bin/tcsh
#SBATCH -A a1193348
#SBATCH -p batch
#SBATCH -n 16
#SBATCH --time=20:00:00
#SBATCH --gres=gpu:4
#SBATCH --mem=55GB
module load openmpi-uofa-intel
module load cuda/6.0
set curdir = /home/a1193348/Scripts/FSpython/
cd ${curdir}
set colanewgpu = /home/a1193348/code/cola/jfsmNew_w2/cuda/
set exe = quarkpropGPU.x
# If variable icfg is not set, then exit
if (! $?icfg) then
echo "Error: icfg variable not set."
exit 1
endif
if (! $?fcfg) then
echo "fcfg variable not set, setting to icfg"
set fcfg = ${icfg}
endif
if (! $?gfos) then
echo "gfos variable not set."
exit 1
endif
if (! $?ism) then
echo "ism variable not set."
exit 1
endif
if (! $?jobid) then
echo "jobid variable not set."
exit 1
endif
if (! $?mach) then
echo "mach variable not set."
exit 1
endif
set reportfolder = /data/jdragos/reports/${mach}/
set reportfile = ${reportfolder}${jobid}.out
echo "cfg = ${icfg}, ism = ${ism}, mpirun 2 point prop"
# set reportfile = ${reportdir}"$sm[${ism}]/report"$jobid".out"
mkdir -p ${reportfile}
rm ${reportfile} -rf
echo 'starting '`date`
# mpirun -np 16 --mca btl ^openib ${colanewgpu}$exe <<EOF > ${reportfile}
mpirun -np 16 ${colanewgpu}$exe <<EOF > ${reportfile}
${curdir}${jobid}
EOF
# If previous exec terminated with error, then exit
if ($? != 0) then
echo "Error with: ${jobid}"
echo ""
cat <<EOF >> ${curdir}errlist.2ptprop
${curdir}${jobid}
EOF
exit 1
endif
echo 'finished '`date`
python ${curdir}ReSubmit.py $icfg $fcfg $gfos 'twoptprop' $ism