1 #!/bin/bash 2 3 if [ $# < 1 ]; then 4 echo "Usage: $0 working_directory [tiny|large [prefix]]" 5 else 6 7 mkdir -p $1 8 ##cp ../libs/*/*.dat $1 9 10 mode=large 11 if [ $# > 2 ]; then 12 mode=$2 13 fi 14 if [ $# > 3 ]; then 15 prefix=$3 16 fi 17 18 EIGENDIR=`cat eigen_root_dir.txt` 19 20 webpagefilename=$1/index.html 21 meanstatsfilename=$1/mean.html 22 23 echo '' > $meanstatsfilename 24 echo '' > $webpagefilename 25 echo '<p><strong>Configuration</strong>' >> $webpagefilename 26 echo '<ul>'\ 27 '<li>' `cat /proc/cpuinfo | grep "model name" | head -n 1`\ 28 ' (' `uname -m` ')</li>'\ 29 '<li> compiler: ' `cat compiler_version.txt` '</li>'\ 30 '<li> eigen3: ' `hg identify -i $EIGENDIR` '</li>'\ 31 '</ul>' \ 32 '</p>' >> $webpagefilename 33 34 source mk_mean_script.sh axpy $1 11 2500 100000 250000 $mode $prefix 35 source mk_mean_script.sh axpby $1 11 2500 100000 250000 $mode $prefix 36 source mk_mean_script.sh matrix_vector $1 11 50 300 1000 $mode $prefix 37 source mk_mean_script.sh atv $1 11 50 300 1000 $mode $prefix 38 source mk_mean_script.sh matrix_matrix $1 11 100 300 1000 $mode $prefix 39 source mk_mean_script.sh aat $1 11 100 300 1000 $mode $prefix 40 # source mk_mean_script.sh ata $1 11 100 300 1000 $mode $prefix 41 source mk_mean_script.sh trmm $1 11 100 300 1000 $mode $prefix 42 source mk_mean_script.sh trisolve_vector $1 11 100 300 1000 $mode $prefix 43 source mk_mean_script.sh trisolve_matrix $1 11 100 300 1000 $mode $prefix 44 source mk_mean_script.sh cholesky $1 11 100 300 1000 $mode $prefix 45 source mk_mean_script.sh partial_lu_decomp $1 11 100 300 1000 $mode $prefix 46 source mk_mean_script.sh tridiagonalization $1 11 100 300 1000 $mode $prefix 47 source mk_mean_script.sh hessenberg $1 11 100 300 1000 $mode $prefix 48 source mk_mean_script.sh symv $1 11 50 300 1000 $mode $prefix 49 source mk_mean_script.sh syr2 $1 11 50 300 1000 $mode $prefix 50 source mk_mean_script.sh ger $1 11 50 300 1000 $mode $prefix 51 source mk_mean_script.sh rot $1 11 2500 100000 250000 $mode $prefix 52 source mk_mean_script.sh complete_lu_decomp $1 11 100 300 1000 $mode $prefix 53 54 fi 55 56 ## compile the web page ## 57 58 #echo `cat footer.html` >> $webpagefilename