summaryrefslogtreecommitdiff
path: root/plots.gnu
diff options
context:
space:
mode:
Diffstat (limited to 'plots.gnu')
-rw-r--r--plots.gnu43
1 files changed, 43 insertions, 0 deletions
diff --git a/plots.gnu b/plots.gnu
new file mode 100644
index 0000000..a277220
--- /dev/null
+++ b/plots.gnu
@@ -0,0 +1,43 @@
+set key top left
+set format y "%.1f x 10^{%L}"
+
+short_keys = "Triple-loop-row Triple-loop-col Matmul BLAS-Dgemm"
+
+set terminal x11 0 title "GCC Runs"
+set multiplot layout 2, 1
+ set title "Short runs"
+ set logscale x
+ set logscale y
+ set grid
+ set xlabel("N")
+ set ylabel("Time [s]")
+ plot for [i=2:5] 'results/gfortran_short' every ::1 using 1:i with linespoints title word(short_keys,i-1)
+
+ set title "Long runs"
+ set logscale x
+ set logscale y
+ set grid
+ set xlabel("N")
+ set ylabel("Time [s]")
+ plot for [i=2:3] 'results/gfortran_long' every ::1 using 1:i with linespoints title word(short_keys,i+1)
+unset multiplot
+
+
+set terminal x11 1 title "OneAPI Runs"
+set multiplot layout 2, 1
+ set title "Short runs"
+ set logscale x
+ set logscale y
+ set grid
+ set xlabel("N")
+ set ylabel("Time [s]")
+ plot for [i=2:5] 'results/ifx_short' every ::1 using 1:i with linespoints title word(short_keys,i-1)
+
+ set title "Long runs"
+ set logscale x
+ set logscale y
+ set grid
+ set xlabel("N")
+ set ylabel("Time [s]")
+ plot for [i=2:3] 'results/ifx_long' every ::1 using 1:i with linespoints title word(short_keys,i+1)
+unset multiplot