From f4f081e59658a67abd63c937a254a94a2dc594ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20R=C3=B6hl?= Date: Wed, 21 Aug 2019 16:03:51 +0200 Subject: [PATCH] Gnuplot plotting script --- MemoryHierarchy/bench.plot | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 MemoryHierarchy/bench.plot diff --git a/MemoryHierarchy/bench.plot b/MemoryHierarchy/bench.plot new file mode 100644 index 0000000..08b5ba0 --- /dev/null +++ b/MemoryHierarchy/bench.plot @@ -0,0 +1,15 @@ +set terminal png size 1024,768 enhanced font ,12 +set output 'striad.png' +set xlabel 'Size [kB]' +set xrange [100:] +set yrange [0:] +set ylabel 'Performance [MFLOP/s]' +cpuname = system("likwid-topology | grep 'CPU name' | cut -d ':' -f2 | sort -u | xargs") +numcores = system("grep 'striad' striad.dat | cut -d ' ' -f 3") +smt = system("grep 'striad' striad.dat | cut -d ' ' -f 4") +type = system("grep 'striad' striad.dat | cut -d ' ' -f 5") +set title sprintf("Benchmark of stream triad A[i] = B[i] + C[i] * D[i]\nType '%s', Threads %s, SMT %s, CPU %s", type, numcores, smt, cpuname) +set logscale x + + +plot 'striad.dat' u 1:2 w linespoints title 'striad'