mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Cleanup file structure
This commit is contained in:
parent
59a59fa8e7
commit
3855ab472f
@ -42,7 +42,7 @@ rm $WHAT.out.header $WHAT.gnuplot
|
|||||||
# generate html/svg graph
|
# generate html/svg graph
|
||||||
|
|
||||||
echo " " > $WHAT.html
|
echo " " > $WHAT.html
|
||||||
cat ../chart_header.html > $WHAT.html
|
cat resources/chart_header.html > $WHAT.html
|
||||||
echo 'var customSettings = {"TITLE":"","SUBTITLE":"","XLABEL":"","YLABEL":""};' >> $WHAT.html
|
echo 'var customSettings = {"TITLE":"","SUBTITLE":"","XLABEL":"","YLABEL":""};' >> $WHAT.html
|
||||||
# 'data' is an array of datasets (i.e. curves), each of which is an object of the form
|
# 'data' is an array of datasets (i.e. curves), each of which is an object of the form
|
||||||
# {
|
# {
|
||||||
@ -95,4 +95,4 @@ do
|
|||||||
done < $WHAT.out
|
done < $WHAT.out
|
||||||
echo '];' >> $WHAT.html
|
echo '];' >> $WHAT.html
|
||||||
|
|
||||||
cat ../chart_footer.html >> $WHAT.html
|
cat resources/chart_footer.html >> $WHAT.html
|
@ -30,6 +30,16 @@ else
|
|||||||
selected=false
|
selected=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
WORKING_DIR=${PREFIX:?"default"}
|
||||||
|
|
||||||
|
if [ -z "$PREFIX" ]; then
|
||||||
|
WORKING_DIR_PREFIX="$WORKING_DIR/"
|
||||||
|
else
|
||||||
|
WORKING_DIR_PREFIX="$WORKING_DIR/$PREFIX-"
|
||||||
|
fi
|
||||||
|
echo "WORKING_DIR_PREFIX=$WORKING_DIR_PREFIX"
|
||||||
|
mkdir -p $WORKING_DIR
|
||||||
|
|
||||||
global_args="$*"
|
global_args="$*"
|
||||||
|
|
||||||
if [ $selected == true ]; then
|
if [ $selected == true ]; then
|
||||||
@ -122,9 +132,9 @@ function test_current
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
make_backup $PREFIX"s"$bench
|
make_backup $WORKING_DIR_PREFIX"s"$bench
|
||||||
make_backup $PREFIX"d"$bench
|
make_backup $WORKING_DIR_PREFIX"d"$bench
|
||||||
make_backup $PREFIX"c"$bench
|
make_backup $WORKING_DIR_PREFIX"c"$bench
|
||||||
|
|
||||||
cut -f1 -d"#" < changesets.txt | grep -E '[[:alnum:]]' | while read rev
|
cut -f1 -d"#" < changesets.txt | grep -E '[[:alnum:]]' | while read rev
|
||||||
do
|
do
|
||||||
@ -135,27 +145,27 @@ do
|
|||||||
actual_rev=`hg identify | cut -f1 -d' '`
|
actual_rev=`hg identify | cut -f1 -d' '`
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
test_current $actual_rev float $PREFIX"s"$bench
|
test_current $actual_rev float $WORKING_DIR_PREFIX"s"$bench
|
||||||
test_current $actual_rev double $PREFIX"d"$bench
|
test_current $actual_rev double $WORKING_DIR_PREFIX"d"$bench
|
||||||
test_current $actual_rev "std::complex<double>" $PREFIX"c"$bench
|
test_current $actual_rev "std::complex<double>" $WORKING_DIR_PREFIX"c"$bench
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Float:"
|
echo "Float:"
|
||||||
cat $PREFIX"s""$bench.out"
|
cat $WORKING_DIR_PREFIX"s""$bench.out"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
echo "Double:"
|
echo "Double:"
|
||||||
cat $PREFIX"d""$bench.out"
|
cat $WORKING_DIR_PREFIX"d""$bench.out"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "Complex:"
|
echo "Complex:"
|
||||||
cat $PREFIX"c""$bench.out"
|
cat $WORKING_DIR_PREFIX"c""$bench.out"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
./make_plot.sh $PREFIX"s"$bench $bench $settings_file
|
./make_plot.sh $WORKING_DIR_PREFIX"s"$bench $bench $settings_file
|
||||||
./make_plot.sh $PREFIX"d"$bench $bench $settings_file
|
./make_plot.sh $WORKING_DIR_PREFIX"d"$bench $bench $settings_file
|
||||||
./make_plot.sh $PREFIX"c"$bench $bench $settings_file
|
./make_plot.sh $WORKING_DIR_PREFIX"c"$bench $bench $settings_file
|
||||||
|
|
||||||
|
|
@ -11,21 +11,21 @@
|
|||||||
# -up : enforce the recomputation of existing data, and keep best results as a merging strategy
|
# -up : enforce the recomputation of existing data, and keep best results as a merging strategy
|
||||||
# -s : recompute selected changesets only and keep bests
|
# -s : recompute selected changesets only and keep bests
|
||||||
|
|
||||||
./run.sh gemm gemm_settings.txt $*
|
# ./run.sh gemm gemm_settings.txt $*
|
||||||
./run.sh lazy_gemm lazy_gemm_settings.txt $*
|
# ./run.sh lazy_gemm lazy_gemm_settings.txt $*
|
||||||
./run.sh gemv gemv_settings.txt $*
|
# ./run.sh gemv gemv_settings.txt $*
|
||||||
./run.sh gemvt gemv_settings.txt $*
|
# ./run.sh gemvt gemv_settings.txt $*
|
||||||
./run.sh trmv_up gemv_square_settings.txt $*
|
# ./run.sh trmv_up gemv_square_settings.txt $*
|
||||||
./run.sh trmv_lo gemv_square_settings.txt $*
|
# ./run.sh trmv_lo gemv_square_settings.txt $*
|
||||||
./run.sh trmv_upt gemv_square_settings.txt $*
|
# ./run.sh trmv_upt gemv_square_settings.txt $*
|
||||||
./run.sh trmv_lot gemv_square_settings.txt $*
|
# ./run.sh trmv_lot gemv_square_settings.txt $*
|
||||||
./run.sh llt gemm_square_settings.txt $*
|
# ./run.sh llt gemm_square_settings.txt $*
|
||||||
|
|
||||||
|
|
||||||
# generate html file
|
# generate html file
|
||||||
|
|
||||||
function print_td {
|
function print_td {
|
||||||
echo '<td><a href="'$PREFIX$1"$2"'.html"><img src="'$PREFIX$1"$2"'.png" title="'$3'"></a></td>' >> $htmlfile
|
echo '<td><a href="'$PREFIX'-'$1"$2"'.html"><img src="'$PREFIX'-'$1"$2"'.png" title="'$3'"></a></td>' >> $htmlfile
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_tr {
|
function print_tr {
|
||||||
@ -36,8 +36,15 @@ function print_tr {
|
|||||||
print_td c $1 complex
|
print_td c $1 complex
|
||||||
echo '</tr>' >> $htmlfile
|
echo '</tr>' >> $htmlfile
|
||||||
}
|
}
|
||||||
htmlfile="index.html"
|
|
||||||
cat ../header.html > $htmlfile
|
if [ -n "$PREFIX" ]; then
|
||||||
|
|
||||||
|
|
||||||
|
cp resources/s1.js $PREFIX/
|
||||||
|
cp resources/s2.js $PREFIX/
|
||||||
|
|
||||||
|
htmlfile="$PREFIX/index.html"
|
||||||
|
cat resources/header.html > $htmlfile
|
||||||
|
|
||||||
echo '<h1>'$1'</h1>' >> $htmlfile
|
echo '<h1>'$1'</h1>' >> $htmlfile
|
||||||
echo '<table>' >> $htmlfile
|
echo '<table>' >> $htmlfile
|
||||||
@ -51,4 +58,6 @@ print_tr trmv_lo 'y += L · x (trmv)'
|
|||||||
print_tr trmv_lot 'y += L<sup>T</sup> · x (trmv)'
|
print_tr trmv_lot 'y += L<sup>T</sup> · x (trmv)'
|
||||||
print_tr trmv_lot 'L · L<sup>T<sup> = A (Cholesky,potrf)'
|
print_tr trmv_lot 'L · L<sup>T<sup> = A (Cholesky,potrf)'
|
||||||
|
|
||||||
cat ../footer.html >> $htmlfile
|
cat resources/footer.html >> $htmlfile
|
||||||
|
|
||||||
|
fi
|
@ -6,17 +6,17 @@
|
|||||||
USER='ggael'
|
USER='ggael'
|
||||||
UPLOAD_DIR=perf_monitoring/ggaelmacbook26
|
UPLOAD_DIR=perf_monitoring/ggaelmacbook26
|
||||||
EIGEN_SOURCE_PATH=$HOME/Eigen/eigen
|
EIGEN_SOURCE_PATH=$HOME/Eigen/eigen
|
||||||
export PREFIX="haswell-fma-"
|
export PREFIX="haswell-fma"
|
||||||
export CXX_FLAGS="-mfma -w"
|
export CXX_FLAGS="-mfma -w"
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
BENCH_PATH=$EIGEN_SOURCE_PATH/bench/perf_monitoring/gemm/
|
BENCH_PATH=$EIGEN_SOURCE_PATH/bench/perf_monitoring/$PREFIX
|
||||||
PREVPATH=`pwd`
|
PREVPATH=`pwd`
|
||||||
cd $BENCH_PATH && ./runall.sh "Haswell 2.6GHz, FMA, Apple's clang" $*
|
cd $EIGEN_SOURCE_PATH/bench/perf_monitoring && ./runall.sh "Haswell 2.6GHz, FMA, Apple's clang" $*
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
|
||||||
ALLFILES="$BENCH_PATH/$PREFIX*.png $BENCH_PATH/$PREFIX*.html $BENCH_PATH/index.html $BENCH_PATH/s1.js $BENCH_PATH/s2.js"
|
ALLFILES="$BENCH_PATH/*.png $BENCH_PATH/*.html $BENCH_PATH/index.html $BENCH_PATH/s1.js $BENCH_PATH/s2.js"
|
||||||
|
|
||||||
# (the '/' at the end of path is very important, see rsync documentation)
|
# (the '/' at the end of path is very important, see rsync documentation)
|
||||||
rsync -az --no-p --delete $ALLFILES $USER@ssh.tuxfamily.org:eigen/eigen.tuxfamily.org-web/htdocs/$UPLOAD_DIR/ || { echo "upload failed"; exit 1; }
|
rsync -az --no-p --delete $ALLFILES $USER@ssh.tuxfamily.org:eigen/eigen.tuxfamily.org-web/htdocs/$UPLOAD_DIR/ || { echo "upload failed"; exit 1; }
|
||||||
|
Loading…
Reference in New Issue
Block a user