-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_tests.sh
executable file
·45 lines (35 loc) · 1.23 KB
/
run_tests.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
#!/usr/bin/env sh
run () {
for model in $models; do
for core in $cores; do
for workers in $skel_workers; do
for ops in $operators; do
for run in `seq 1 $run_repeat`; do
mkdir -p $output_root/$ops/$model/$core/w$workers
echo "running $model in $rtime mlsecs with $workers skel workers on $core cores with $ops operators.."
logfile="emas_$rtime"`date +"-%s"`".log"
output_file=$output_root/$ops/$model/$core/w$workers/$logfile
echo $output_file
erl +S 4:$core -pa ebin -pa deps/*/ebin \
-eval "emas:start($model,$rtime,[{skel_workers,$workers},{genetic_ops,$ops},{problem_size,30}])." \
-run init stop -noshell
#> $output_file
done
done
done
done
done
}
output_dir="output"
# rtime=120000
rtime=2000
# cores="1 2 4"
cores="4"
# run_repeat=3
run_repeat=1
skel_workers="4 8"
models="skel_main sequential hybrid concurrent"
operators="rastrigin_bin_ops labs_ops"
# models="hybrid"
output_root=$output_dir/tests
run