forked from libxsmm/libxsmm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmm-perf.plt
65 lines (57 loc) · 1.74 KB
/
smm-perf.plt
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
MPARM = 1
NPARM = 2
KPARM = 3
FLOPS = 5
HIM = -1
HIN = HIM
HIK = HIM
FILENAME = system("sh -c \"echo ${FILENAME}\"")
if (FILENAME eq "") {
FILENAME = "smm-perf.pdf"
}
FILECOUNT = 1 # initial file number
# MULTI =-1: multiple files; no titles
# MULTI = 0: multiple files with titles
# MULTI = 1: single file with titles
MULTI = system("sh -c \"echo ${MULTI}\"")
if (MULTI eq "") {
MULTI = 1
}
LIMIT = system("sh -c \"echo ${LIMIT}\"")
if (LIMIT eq "") {
LIMIT = 128
}
if (MULTI==1) {
set output FILENAME
}
FILEEXT = system("sh -c \"echo ".FILENAME." | sed 's/.\\+\\.\\(.\\+\\)/\\1/'\"")
set terminal FILEEXT
set termoption enhanced
#set termoption font ",12"
save_encoding = GPVAL_ENCODING
set encoding utf8
reset
if (MULTI<=0) { set output "".FILECOUNT."-".FILENAME; FILECOUNT = FILECOUNT + 1 }
if (MULTI>-1) { set title "Selected Problem Instances" }
set style fill solid 0.4 border -1
set style data histograms
set style histogram cluster #gap 2
#set boxwidth 0.5 relative
set grid y2tics lc "grey"
set key left #spacing 0.5
set xtics rotate by -45 scale 0; set bmargin 6
set ytics format ""
set y2tics nomirror
set y2label "GFLOP/s"
set xrange [0:LIMIT+0.85]
set yrange [0:*]
set autoscale fix
if (0!=system("sh -c \"if [ -e smm-inlined.dat ]; then echo 1; else echo 0; fi\"")) {
plot "smm-inlined.dat" using FLOPS title "Inlined", \
"smm-blas.dat" using FLOPS title "BLAS", \
"smm-dispatched.dat" using FLOPS title "Dispatched", \
"smm-specialized.dat" using FLOPS:xtic("(".strcol(MPARM).",".strcol(NPARM).",".strcol(KPARM).")") title "Specialized"
} else {
plot "smm-blas.dat" using FLOPS title "BLAS", \
"smm-specialized.dat" using FLOPS:xtic("(".strcol(MPARM).",".strcol(NPARM).",".strcol(KPARM).")") title "Specialized"
}