summaryrefslogtreecommitdiff
path: root/plots.gnu
blob: a27722029f53ae601bfbdec1cdac6bc0b68cf4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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