-
Notifications
You must be signed in to change notification settings - Fork 1
/
BliStrTune-RUN.sh
executable file
·62 lines (46 loc) · 1.46 KB
/
BliStrTune-RUN.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
57
58
59
60
61
#!/bin/sh
CORES=4
BST_TIMEOUT_GLOBAL=10
BST_TIMEOUT_FINETUNES=10
BST_CUTOFF=1
BST_EVAL_LIMIT=1
BST_MIN_CEFS=3
BST_MAX_CEFS=6
BST_VERS=1
BST_TOPS=20
BST_MIN_PROC=10
BST_MAX_PROC=30000
BST_BENCHMARK=test
BST_INITSTRATS=tptp
#
# Non-hackers do not change below this line
#
#. ./setenv.sh # always call this yourself before tuning
export CORES
DIR="BliStrTune-${BST_BENCHMARK}-${BST_INITSTRATS}"
DIR="$DIR-${BST_TIMEOUT_GLOBAL}t${BST_TIMEOUT_FINETUNES}"
DIR="$DIR-cut${BST_CUTOFF}-e${BST_EVAL_LIMIT}"
DIR="$DIR-${BST_MIN_CEFS}c${BST_MAX_CEFS}"
DIR="$DIR-${BST_MIN_PROC}p${BST_MAX_PROC}"
DIR="$DIR-top${BST_TOPS}-vers${BST_VERS}-${CORES}cores"
cp -r SKEL $DIR
mv $DIR/BliStrTune.pl.template $DIR/BliStrTune.pl
mv $DIR/epymils.py.template $DIR/epymils.py
BLISTR_ARGS="BST_EVAL_LIMIT CORES BST_TOPS BST_VERS\
BST_MIN_PROC BST_MAX_PROC BST_BENCHMARK BST_INITSTRATS"
for ARG in $BLISTR_ARGS; do
sed -i "s/@@@${ARG}@@@/${!ARG}/g" $DIR/BliStrTune.pl
done
EPYMILS_ARGS="BST_TIMEOUT_GLOBAL BST_TIMEOUT_FINETUNES BST_CUTOFF\
BST_MIN_CEFS BST_MAX_CEFS CORES"
for ARG in $EPYMILS_ARGS; do
sed -i "s/@@@${ARG}@@@/${!ARG}/g" $DIR/epymils.py
done
chmod a+x $DIR/BliStrTune.pl
chmod a+x $DIR/epymils.py
./make-initprots.sh $BST_INITSTRATS $BST_BENCHMARK $BST_EVAL_LIMIT
cp -r $ATP_ROOT/inits/$BST_INITSTRATS/${BST_EVAL_LIMIT}s $DIR/initprots
cp -r $ATP_ROOT/benchmarks/$BST_BENCHMARK $DIR/allprobs
mkdir -p $DIR/strats
mkdir -p $DIR/prots
(cd $DIR; ./BliStrTune.pl | tee nohup.out)