tAdded machine description to plot title - numeric - C++ library with numerical… | |
git clone git://src.adamsgaard.dk/numeric | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 71d70f0f1163fa42b607127f238c47cddd7049c2 | |
parent ec5f1491ca8bc1281cc5c61549bf6226753fe180 | |
Author: Anders Damsgaard Christensen <[email protected]> | |
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(-) | |
--- | |
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` && e… | |
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 |