numeric

C++ library with numerical algorithms
git clone git://src.adamsgaard.dk/numeric
Log | Files | Refs

commit 71d70f0f1163fa42b607127f238c47cddd7049c2
parent ec5f1491ca8bc1281cc5c61549bf6226753fe180
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date:   Wed, 23 Jan 2013 19:58:11 +0100

Added machine description to plot title

Diffstat:
Amatrixmul/cputhreads.sh | 3+++
Mmatrixmul/plot.gp | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/matrixmul/cputhreads.sh b/matrixmul/cputhreads.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Returns the number of threads the system CPU(s) have +threads=`cat /proc/cpuinfo | grep processor | awk '{print $3}' | tail -1` && echo "$threads+1" | bc diff --git a/matrixmul/plot.gp b/matrixmul/plot.gp @@ -2,7 +2,7 @@ set terminal png size 1200,600 set output "performance.png" set xlabel "Matrix side length" set ylabel "Execution time [s]" -set title "Matrix multiplication" +set title "Matrix multiplication (".platform." ".threads." threads)" #set log xy set grid set key outside