-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_parallel.sh
122 lines (92 loc) · 4.36 KB
/
run_parallel.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/bin/bash
graphs=$1
cores=$2
args=$3
file=$4
log_level=$5
seed=$6
exe=$7
# if [ -z "${args}" ]
# then
# args="plot=False save=False verbose=False"
# fi
if [ ! -z "${file}" ]
then
args="${args} output_path=results/${file} exist_ok=True"
fi
if [ -z "${log_level}" ]
then
log_level="DEBUG"
fi
if [ -z "${seed}" ]
then
seed=$RANDOM
fi
if [ -z "${exe}" ]
then
exe="python3"
fi
if [ -z "$file" ]
then
tmux new -d
else
tmux new -d -s "${file}"
fi
step=$(((graphs+cores-1)/cores))
for ((i=0;i<cores;i++)); do
first=$((i*step+1))
last=$(((i+1)*step))
giter="[${first},${last}]"
if [ $i -eq 0 ]
then
tmux rename-window "${giter}"
else
tmux neww -d -n "${giter}"
fi
tmux send-keys -t "${giter}" "${exe} workexp.py -l ${log_level} with _giter=${giter} seed=$((seed)) ${args}" Enter
# python3 workexp.py with _giter="${giter}" seed=$((seed)) "${args}" &
echo $first $last
done
# bash run_parallel.sh 4 4 "verbose=False plot=False save=False full" test DEBUG 123 python
# bash run_parallel.sh 4 4 "verbose=False plot=False save=False run=[0,2] mtype=[10,10,10] iters=1" deb
# bash run_parallel.sh 15 3 "exp1 noise_level=0.05 full run=[2,6,7,8]" 005 seed=196355709
# bash run_parallel.sh 15 3 "exp1 noise_level=0.04 full run=[2,6,7,8]" 004 seed=895321488
# bash run_parallel.sh 15 3 "exp1 noise_level=0.03 full run=[2,6,7,8]" 003 seed=821564523
# bash run_parallel.sh 15 3 "exp1 noise_level=0.02 full run=[2,6,7,8]" 002 seed=123
# bash run_parallel.sh 15 3 "exp1 noise_level=0.01 full run=[2,6,7,8]" 001 seed=123
# bash run_parallel.sh 15 3 "exp1 noise_level=0.00 full run=[2,6,7,8]" 000 seed=123
# bash run_parallel.sh 9 3 "exp1 noise_level=0.05 full" 005r
# bash run_parallel.sh 9 3 "exp1 noise_level=0.04 full" 004r
# bash run_parallel.sh 9 3 "exp1 noise_level=0.03 full" 003r
# bash run_parallel.sh 9 3 "exp1 noise_level=0.02 full" 002r
# bash run_parallel.sh 9 3 "exp1 noise_level=0.01 full" 001r
# bash run_parallel.sh 9 3 "exp1 noise_level=0.00 full" 000r
# bash run_parallel.sh 3 3 "exp1 noise_level=0.05 run=[0] mtype=[10] iters=10 GW_args.opt_dict.epochs=10" gwjv005r DEBUG 7415
# bash run_parallel.sh 3 3 "exp1 noise_level=0.04 run=[0] mtype=[10] iters=10 GW_args.opt_dict.epochs=10" gwjv004r DEBUG 7914
# bash run_parallel.sh 3 3 "exp1 noise_level=0.03 run=[0] mtype=[10] iters=10 GW_args.opt_dict.epochs=10" gwjv003r DEBUG 32298
# bash run_parallel.sh 3 3 "exp1 noise_level=0.02 run=[0] mtype=[10] iters=10 GW_args.opt_dict.epochs=10" gwjv002r DEBUG 1644
# bash run_parallel.sh 3 3 "exp1 noise_level=0.01 run=[0] mtype=[10] iters=10 GW_args.opt_dict.epochs=10" gwjv001r DEBUG 4245
# bash run_parallel.sh 3 3 "exp1 noise_level=0.00 run=[0] mtype=[10] iters=10 GW_args.opt_dict.epochs=10" gwjv000r DEBUG 31287
# bash run_parallel.sh 3 1 "exp1r noise_level=0.05 run=[2,3,4] iters=5 no_disc=True"
# bash run_parallel.sh 15 1 "exp1s noise_level=0.05 run=[0] iters=1 gwjv" gwjv005s
# bash run_parallel.sh 15 1 "exp1s noise_level=0.03 run=[0] iters=1 gwjv" gwjv003
# bash run_parallel.sh 3 1 "exp1r noise_level=0.05 full iters=5" face005
# bash run_parallel.sh 3 1 "exp1r noise_level=0.03 full iters=5" face003
# bash run_parallel.sh 3 1 "exp1r noise_level=0.01 full iters=5" face001
# bash run_parallel.sh 1 1 "playground run=[2] nice=5 iters=5" grasp005_2
# bash run_parallel.sh 1 1 "playground run=[2] nice=5 iters=5 no_disc=True" grasp005nodisc_2
# bash run_parallel.sh 5 1 "playground run=[2] nice=5" grasp005judith_2
# bash run_parallel.sh 18 3 "exp1r full nice=15 run=[1,2,3,4,5,6,7,8]" facenogw
# python workexp.py -l INFO with playground run=[2,3] win seed=123 noise_level=0.05
# python3 workexp.py -l DEBUG with playground run=[2,3] seed=123 noise_level=0.05 verbose=True
# python3 workexp.py -l INFO with playground run=[2,3] seed=123 noise_level=0.05 verbose=True
# python3 workexp.py with exp1 noise_type=1 seed=12311 nice=15
# python3 workexp.py with exp1 noise_type=2 seed=12312 nice=15
# python3 workexp.py with exp1 noise_type=3 seed=12313 nice=15
# python3 workexp.py with exp2 noise_type=1 seed=12321
# python3 workexp.py with exp2 noise_type=2 seed=12322
# python3 workexp.py with exp2 noise_type=3 seed=12323
# python3 workexp.py with exp2 noise_type=1 seed=12321
# python3 workexp.py with exp2 noise_type=2 seed=12322
# python3 workexp.py with exp2 noise_type=3 seed=12323
# python3 workexp.py with playground GW_args.max_cpu=20 iter=3