-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_tests.sh
executable file
·92 lines (81 loc) · 2.88 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
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
#!/bin/bash
case $HOSTNAME in
gauss)
module purge
module load use.own
module load gnu/comp/default
module load gnu/mkl/seq/11.2.0
module load hwloc/1.11.2
module load fxt/0.3.1
module load starpu/trunk
module load metis/4.0.3
module load hsl/latest
module load spral/trunk
module list
;;
cn202.scarf.rl.ac.uk | cn255.scarf.rl.ac.uk)
module purge
module load use.own
module load gcc/5.3.0
module load intel/mkl/11.3.1.150
module load hwloc/1.11.2
module load starpu/trunk-nogpu
# module load starpu/trunk-nogpu-nofxt
module load metis/4.0.3
module load hsl/latest
module load spral/trunk
module list
;;
esac
build_dir=`pwd`
id=`whoami`
outdir=data
#outsuffix="_NOSUB"
outsuffix=
echo "[run_tests] build dir: $build_dir"
#matrices=(JGD_Trefethen/Trefethen_20000)
ncpu_list=(27)
nb_list=(768)
nemin_list=(32)
trace_dir=/tmp
prof_file=prof_file_scarf462_0
# for matrix in ${matrices[@]}
mkdir -p $outdir
mkdir -p $outdir/spllt_starpu
mkdir -p $outdir/spllt_starpu/traces
mkdir -p $outdir/ma87
for matrix in `cat list.matrix`
do
matname=`echo $matrix | sed -e 's/\//_/g'`
echo "[run_tests] test matrix: $matname"
# set up matrix
echo "[run_tests] extract matrix: $matname"
./prep.sh $matrix
for ncpu in ${ncpu_list[@]}
do
echo "[run_tests] ncpu: $ncpu"
for nb in ${nb_list[@]}
do
echo "[run_tests] nb: $nb"
for nemin in ${nemin_list[@]}
do
echo "[run_tests] nemin: $nemin"
# ./run_ma87
# echo "[run_tests] run MA87"
# export OMP_NUM_THREADS=${ncpu}
# ./run_ma87 --ncpu ${ncpu} --nb ${nb} --nemin ${nemin} > $outdir/ma87/${matname}_NCPU-${ncpu}_NB-${nb}_NEMIN-${nemin}
echo "[run_tests] run SPLLT_STARPU"
rm -rf $trace_dir/$prof_file
# just to make sure
export OMP_NUM_THREADS=1
# ./spllt_starpu_test --ncpu ${ncpu} --nb ${nb} --nemin ${nemin} > $outdir/spllt_starpu/${matname}_NCPU-${ncpu}_NB-${nb}_NEMIN-${nemin}
./spllt_starpu_test --ncpu ${ncpu} --nb ${nb} --nemin ${nemin} > $outdir/spllt_starpu/${matname}_NCPU-${ncpu}_NB-${nb}_NEMIN-${nemin}${outsuffix}
if [ -f $trace_dir/$prof_file ];
then
mv $trace_dir/$prof_file $outdir/spllt_starpu/traces/${matname}_NCPU-${ncpu}_NB-${nb}_NEMIN-${nemin}${outsuffix}.prof
starpu_fxt_tool -c -i $outdir/spllt_starpu/traces/${matname}_NCPU-${ncpu}_NB-${nb}_NEMIN-${nemin}${outsuffix}.prof -o $outdir/spllt_starpu/traces/${matname}_NCPU-${ncpu}_NB-${nb}_NEMIN-${nemin}${outsuffix}.trace
fi
done
done
done
done