2009-06-05 00:16:54 +08:00
|
|
|
#!/bin/bash
|
2009-03-04 15:21:17 +08:00
|
|
|
|
|
|
|
if [ $# < 1 ]; then
|
|
|
|
echo "Usage: $0 working_directory [tiny|large [prefix]]"
|
|
|
|
else
|
|
|
|
|
2008-07-29 04:48:21 +08:00
|
|
|
mkdir -p $1
|
2008-07-09 22:04:48 +08:00
|
|
|
##cp ../libs/*/*.dat $1
|
|
|
|
|
2009-03-04 15:21:17 +08:00
|
|
|
mode=large
|
|
|
|
if [ $# > 2 ]; then
|
|
|
|
mode=$2
|
|
|
|
fi
|
|
|
|
if [ $# > 3 ]; then
|
|
|
|
prefix=$3
|
|
|
|
fi
|
|
|
|
|
2008-07-13 05:41:32 +08:00
|
|
|
EIGENDIR=`cat eigen_root_dir.txt`
|
|
|
|
|
|
|
|
webpagefilename=$1/index.html
|
2008-08-05 07:12:48 +08:00
|
|
|
meanstatsfilename=$1/mean.html
|
|
|
|
|
|
|
|
echo '' > $meanstatsfilename
|
2008-07-13 05:41:32 +08:00
|
|
|
echo '' > $webpagefilename
|
|
|
|
echo '<p><strong>Configuration</strong>' >> $webpagefilename
|
|
|
|
echo '<ul>'\
|
|
|
|
'<li>' `cat /proc/cpuinfo | grep "model name" | head -n 1`\
|
|
|
|
' (' `uname -m` ')</li>'\
|
|
|
|
'<li> compiler: ' `cat compiler_version.txt` '</li>'\
|
2011-03-23 17:02:00 +08:00
|
|
|
'<li> eigen3: ' `hg identify -i $EIGENDIR` '</li>'\
|
2008-07-13 05:41:32 +08:00
|
|
|
'</ul>' \
|
|
|
|
'</p>' >> $webpagefilename
|
|
|
|
|
2009-03-04 15:21:17 +08:00
|
|
|
source mk_mean_script.sh axpy $1 11 2500 100000 250000 $mode $prefix
|
|
|
|
source mk_mean_script.sh axpby $1 11 2500 100000 250000 $mode $prefix
|
|
|
|
source mk_mean_script.sh matrix_vector $1 11 50 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh atv $1 11 50 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh matrix_matrix $1 11 100 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh aat $1 11 100 300 1000 $mode $prefix
|
2011-03-23 17:02:00 +08:00
|
|
|
# source mk_mean_script.sh ata $1 11 100 300 1000 $mode $prefix
|
2012-06-08 00:35:38 +08:00
|
|
|
source mk_mean_script.sh trmm $1 11 100 300 1000 $mode $prefix
|
2011-01-31 19:45:18 +08:00
|
|
|
source mk_mean_script.sh trisolve_vector $1 11 100 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh trisolve_matrix $1 11 100 300 1000 $mode $prefix
|
2009-03-04 15:21:17 +08:00
|
|
|
source mk_mean_script.sh cholesky $1 11 100 300 1000 $mode $prefix
|
2009-06-05 00:16:54 +08:00
|
|
|
source mk_mean_script.sh partial_lu_decomp $1 11 100 300 1000 $mode $prefix
|
2009-03-04 15:21:17 +08:00
|
|
|
source mk_mean_script.sh tridiagonalization $1 11 100 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh hessenberg $1 11 100 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh symv $1 11 50 300 1000 $mode $prefix
|
|
|
|
source mk_mean_script.sh syr2 $1 11 50 300 1000 $mode $prefix
|
2009-08-04 17:30:33 +08:00
|
|
|
source mk_mean_script.sh ger $1 11 50 300 1000 $mode $prefix
|
2009-08-15 16:19:16 +08:00
|
|
|
source mk_mean_script.sh rot $1 11 2500 100000 250000 $mode $prefix
|
2011-03-23 17:02:00 +08:00
|
|
|
source mk_mean_script.sh complete_lu_decomp $1 11 100 300 1000 $mode $prefix
|
2008-08-05 07:12:48 +08:00
|
|
|
|
2009-03-04 15:21:17 +08:00
|
|
|
fi
|
2008-07-13 05:41:32 +08:00
|
|
|
|
|
|
|
## compile the web page ##
|
2008-07-09 22:04:48 +08:00
|
|
|
|
2008-07-13 05:41:32 +08:00
|
|
|
#echo `cat footer.html` >> $webpagefilename
|