• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3if [ $# < 1 ]; then
4  echo "Usage: $0 working_directory [tiny|large [prefix]]"
5else
6
7mkdir -p $1
8##cp ../libs/*/*.dat $1
9
10mode=large
11if [ $# > 2 ]; then
12  mode=$2
13fi
14if [ $# > 3 ]; then
15  prefix=$3
16fi
17
18EIGENDIR=`cat eigen_root_dir.txt`
19
20webpagefilename=$1/index.html
21meanstatsfilename=$1/mean.html
22
23echo ''  > $meanstatsfilename
24echo ''  > $webpagefilename
25echo '<p><strong>Configuration</strong>'  >> $webpagefilename
26echo '<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
34source mk_mean_script.sh axpy $1 11 2500 100000 250000  $mode $prefix
35source mk_mean_script.sh axpby $1 11 2500 100000 250000 $mode $prefix
36source mk_mean_script.sh matrix_vector $1 11 50 300 1000 $mode $prefix
37source mk_mean_script.sh atv $1 11 50 300 1000 $mode $prefix
38source mk_mean_script.sh matrix_matrix $1 11 100 300 1000 $mode $prefix
39source 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
41source mk_mean_script.sh trmm $1 11 100 300 1000 $mode $prefix
42source mk_mean_script.sh trisolve_vector $1 11 100 300 1000 $mode $prefix
43source mk_mean_script.sh trisolve_matrix $1 11 100 300 1000 $mode $prefix
44source mk_mean_script.sh cholesky $1 11 100 300 1000 $mode $prefix
45source mk_mean_script.sh partial_lu_decomp $1 11 100 300 1000 $mode $prefix
46source mk_mean_script.sh tridiagonalization $1 11 100 300 1000 $mode $prefix
47source mk_mean_script.sh hessenberg $1 11 100 300 1000 $mode $prefix
48source mk_mean_script.sh symv $1 11 50 300 1000 $mode $prefix
49source mk_mean_script.sh syr2 $1 11 50 300 1000 $mode $prefix
50source mk_mean_script.sh ger $1 11 50 300 1000 $mode $prefix
51source mk_mean_script.sh rot $1 11 2500 100000 250000 $mode $prefix
52source mk_mean_script.sh complete_lu_decomp $1 11 100 300 1000 $mode $prefix
53
54fi
55
56## compile the web page ##
57
58#echo `cat footer.html` >> $webpagefilename