-
Notifications
You must be signed in to change notification settings - Fork 1
/
intrepidruns
58 lines (48 loc) · 1.08 KB
/
intrepidruns
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
#!/bin/bash
#first arg is number of K processes except 256 and 512 are that number
#optional arg2-3 are before and after the init.hoc respectively
# and should be of form "-c parameter=value ..." (see param.hoc)
#to change time from 20, set the minutes=value environment variable
# eg minutes=30 ./intrepidrun 16 '-c ncellpow=20 -c ncon=10000 -c series=4321'
WORKDIR=`pwd`
if test $minutes = "" ; then
minutes=20
fi
if test $# -gt 0 ; then
npk=$1 #K processes
shift
else
npk=512
fi
np=$(($npk * 1024))
if test $npk -ge 256 ; then
np=$npk
fi
nnode=$(($np / 4))
q=prod-devel
if test $nnode -gt 512 ; then
q=prod
fi
before=""
after=""
if test $# -gt 0 ; then
before="$1"
shift
fi
if test $# -gt 0 ; then
after="$1"
shift
fi
echo $npk proccount=$np nnode=$nnode
echo time=$minutes
echo queue=$q
echo $before
#exit 0
#env='BG_COREDUMP_PATH=/intrepid-fs0/users/hines/scratch/cores'
env='BG_COREDUMPDISABLED=1'
qsub -q $q -t $minutes -n $nnode --proccount $np --mode vn \
-M [email protected] \
--env $env \
--cwd $WORKDIR \
$WORKDIR/powerpc64/special \
-mpi $before