|
Revision 42, 0.7 kB
(checked in by pernet, 1 year ago)
|
|
Introduce the benchmark directory, by Pascal Giorgi.
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | FF_ATLAS=$1 |
|---|
| 4 | FF_GOTO=$2 |
|---|
| 5 | NUM_ATLAS=$3 |
|---|
| 6 | NUM_GOTO=$4 |
|---|
| 7 | |
|---|
| 8 | FUNCTION_NAME=$5 |
|---|
| 9 | FUNCTION_DESCR=$6 |
|---|
| 10 | ARCH=$7 |
|---|
| 11 | |
|---|
| 12 | gnuplot <<EOF |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | set encoding iso_8859_1 |
|---|
| 16 | set xlabel "Matrix dimension" |
|---|
| 17 | set ylabel "ratio" |
|---|
| 18 | set title "ratio of matrix multiplication / ${FUNCTION_DESCR}" |
|---|
| 19 | |
|---|
| 20 | set terminal postscript enhanced color 18 |
|---|
| 21 | set output "${ARCH}/graph-${ARCH}-${FUNCTION_NAME}.eps" |
|---|
| 22 | |
|---|
| 23 | plot [1000:10000][] "$FF_ATLAS" using 1:(\$3/\$2) title "FFLAS/FFPACK (ATLAS)" with lines 1 ,\ |
|---|
| 24 | "$FF_GOTO" using 1:(\$3/\$2) title "FFLAS/FFPACK (GOTO)" with lines 2 ,\ |
|---|
| 25 | "$NUM_ATLAS" using 1:(\$3/\$2) title "BLAS/LAPACK (ATLAS)" with lines 3 ,\ |
|---|
| 26 | "$NUM_GOTO" using 1:(\$3/\$2) title "BLAS/LAPACK (GOTO)" with lines 4 |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | EOF |
|---|