mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
28539e7597
the modifications to initial code follow: * changed build system from plain makefiles to cmake * added eigen2 (4 versions: vec/novec and fixed/dynamic), GMM++, MTL4 interfaces * added "transposed matrix * vector" product action * updated blitz interface to use condensed products instead of hand coded loops * removed some deprecated interfaces * changed default storage order to column major for all libraries * new generic bench timer strategy which is supposed to be more accurate * various code clean-up
69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
#! /bin/bash
|
|
WHAT=$1
|
|
DIR=$2
|
|
echo $WHAT script generation
|
|
cat $WHAT.hh > $WHAT.gnuplot
|
|
|
|
DATA_FILE=`find $DIR -name "*.dat" | grep $WHAT`
|
|
|
|
echo plot \\ >> $WHAT.gnuplot
|
|
|
|
for FILE in $DATA_FILE
|
|
do
|
|
LAST=$FILE
|
|
done
|
|
|
|
echo LAST=$LAST
|
|
|
|
for FILE in $DATA_FILE
|
|
do
|
|
if [ $FILE != $LAST ]
|
|
then
|
|
BASE=${FILE##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
|
echo "'"$FILE"'" title "'"$TITLE"'" ",\\" >> $WHAT.gnuplot
|
|
fi
|
|
done
|
|
BASE=${LAST##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
|
echo "'"$LAST"'" title "'"$TITLE"'" >> $WHAT.gnuplot
|
|
|
|
#echo set term postscript color >> $WHAT.gnuplot
|
|
#echo set output "'"$WHAT.ps"'" >> $WHAT.gnuplot
|
|
echo set term pbm small color >> $WHAT.gnuplot
|
|
echo set output "'"$WHAT.ppm"'" >> $WHAT.gnuplot
|
|
echo plot \\ >> $WHAT.gnuplot
|
|
|
|
for FILE in $DATA_FILE
|
|
do
|
|
if [ $FILE != $LAST ]
|
|
then
|
|
BASE=${FILE##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
|
echo "'"$FILE"'" title "'"$TITLE"'" ",\\" >> $WHAT.gnuplot
|
|
fi
|
|
done
|
|
BASE=${LAST##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
|
echo "'"$LAST"'" title "'"$TITLE"'" >> $WHAT.gnuplot
|
|
|
|
echo set term jpeg large >> $WHAT.gnuplot
|
|
echo set output "'"$WHAT.jpg"'" >> $WHAT.gnuplot
|
|
echo plot \\ >> $WHAT.gnuplot
|
|
|
|
for FILE in $DATA_FILE
|
|
do
|
|
if [ $FILE != $LAST ]
|
|
then
|
|
BASE=${FILE##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
|
echo "'"$FILE"'" title "'"$TITLE"'" ",\\" >> $WHAT.gnuplot
|
|
fi
|
|
done
|
|
BASE=${LAST##*/} ; BASE=${FILE##*/} ; AVANT=bench_${WHAT}_ ; REDUC=${BASE##*$AVANT} ; TITLE=${REDUC%.dat}
|
|
echo "'"$LAST"'" title "'"$TITLE"'" >> $WHAT.gnuplot
|
|
|
|
|
|
gnuplot -persist < $WHAT.gnuplot
|
|
|
|
rm $WHAT.gnuplot
|
|
|
|
|
|
|
|
|