tAdded machine description to plot title - numeric - C++ library with numerical algorithms
(HTM) git clone git://src.adamsgaard.dk/numeric
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 71d70f0f1163fa42b607127f238c47cddd7049c2
(DIR) parent ec5f1491ca8bc1281cc5c61549bf6226753fe180
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Wed, 23 Jan 2013 19:58:11 +0100
Added machine description to plot title
Diffstat:
A matrixmul/cputhreads.sh | 3 +++
M matrixmul/plot.gp | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/matrixmul/cputhreads.sh b/matrixmul/cputhreads.sh
t@@ -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
(DIR) diff --git a/matrixmul/plot.gp b/matrixmul/plot.gp
t@@ -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