root / benchmark / graph / make_graph.sh

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
3FF_ATLAS=$1
4FF_GOTO=$2
5NUM_ATLAS=$3
6NUM_GOTO=$4
7
8FUNCTION_NAME=$5
9FUNCTION_DESCR=$6
10ARCH=$7
11
12gnuplot <<EOF
13
14
15set encoding iso_8859_1
16set xlabel "Matrix dimension"
17set ylabel "ratio"
18set title "ratio of matrix multiplication / ${FUNCTION_DESCR}"
19
20set terminal postscript  enhanced color 18
21set output "${ARCH}/graph-${ARCH}-${FUNCTION_NAME}.eps"
22
23plot [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
31EOF
Note: See TracBrowser for help on using the browser.