-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_pkira.sh
executable file
·56 lines (50 loc) · 1.19 KB
/
run_pkira.sh
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
#!/bin/bash
# Make sure that STARLAB_INSTALL_PATH has been defined: export
#STARLAB_INSTALL_PATH="/home/starlab/manybody/starlab/usr"
#Better do
# this automatically, but then the .cshrc.bask file has to be
# defined. Better to rewrite this script to a tcsh.
source ~/.bashrc.starlab
if [ "$LAMRANK" ]; then
rank=$LAMRANK
else
rank=$MPIRUN_RANK
fi
case $rank in
0) out=out.$rank
err=err.$rank
;;
*) out=/dev/null
err=/dev/null
;;
esac
$STARLAB_INSTALL_PATH/bin/kira "$@"
#On the LISA cluster this script looks like:
# #!/bin/bash
# nodes=$1
# ppn=$2
# n=$3
# t=$4
# inputfile=$PWD/universe.$n
# (( rnodes = nodes ))
# #if [[ nodes -lt 2 ]] ; then
# # (( rnodes++ ))
# #fi
# (( procs = nodes * ppn ))
# cat << eof > tmpjob
# #PBS -lnodes=$rnodes:ppn=$ppn:infiniband -lwalltime=4:00:00 -N jobkira-d10-$1-$2-$3-$4
# date
# echo $1 $2 $3 $4
# export GMON_OUT_PREFIX=kira
#
# module load gnu-mpich-ib
# #module load mpicopy
# #mpicopy $inputfile
#
# workdir=$PWD/kiraworkdirmpi-d10-$n-$nodes-$ppn-$t.\$(date +%F-%R-%S | sed s/://)
# exe=$PWD/run_kira.sh
# mkdir -p \$workdir || exit
# cd \$workdir || exit
# time mpiexec -n $procs \$exe -d 10 -t $t -R $inputfile
# eof
# qsub tmpjob