tChanged terminal to pngcairo with cpumodel info - numeric - C++ library with numerical algorithms
(HTM) git clone git://src.adamsgaard.dk/numeric
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit e94b15a943f4e6efbc0b4cdb7728d2753da139ee
(DIR) parent 71d70f0f1163fa42b607127f238c47cddd7049c2
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Wed, 23 Jan 2013 20:41:52 +0100
Changed terminal to pngcairo with cpumodel info
Diffstat:
A matrixmul/cpumodel.sh | 4 ++++
M matrixmul/plot.gp | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/matrixmul/cpumodel.sh b/matrixmul/cpumodel.sh
t@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Find the model name of the system CPU
+cat /proc/cpuinfo | grep "model name" | tail -1 | cut -f 1 -d ':' --complement
(DIR) diff --git a/matrixmul/plot.gp b/matrixmul/plot.gp
t@@ -1,8 +1,8 @@
-set terminal png size 1200,600
+set terminal pngcairo size 1200,600
set output "performance.png"
set xlabel "Matrix side length"
set ylabel "Execution time [s]"
-set title "Matrix multiplication (".platform." ".threads." threads)"
+set title "Matrix multiplication\n".platform.",".cpumodel.", ".threads." threads"
#set log xy
set grid
set key outside