-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplotgpu8.R
60 lines (43 loc) · 1.51 KB
/
plotgpu8.R
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
#Q = read.csv("results.gpus.slot3.txt",sep=",")
#Q = read.csv("results.2.txt",sep=",")
#Q = read.csv("gpufixed.txt",sep=",")
#Q = read.csv("3x3.out",sep=",")
#Q = read.csv("result.3.txt",sep=",")
#Q = read.csv("result5x5.out",sep=",")
#Q = read.csv("result8x8.txt",sep=",")
#Q = read.csv("result8x8_0-2.txt",sep=",")
#Q = read.csv("TRPNG/result8x8_all.txt",sep=",")
#Q = read.csv("result8x8_0-4_all_epyc_MI25.txt",sep=",")
#Q = read.csv("result.clblast.txt",sep=",")
Q = read.csv("result.clblast.tuned.txt",sep=",")
Q = read.csv("results.2019-07029.csv",sep=",")
Types = unique(Q$TYPE)
##ALG = c('M7', 'M23', 'M49', 'M99', 'M343')
ALG = c('M7', 'M23', 'M49')
for (T in Types) {
Single = subset(Q, TYPE==T)
for (a in ALG) {
if (FILE) png(paste(T,a,".png",sep=""))
SingleA = Single[grep(a,Single$NAME),]
Algs = list()
algs = unique(SingleA$NAME)
S = unique(SingleA$SIZE)
for (aq in algs) {
Algs[[aq]] = subset(SingleA, NAME==aq)
}
range = S*0.0 + min(SingleA$HOT)
range[1] = max(SingleA$HOT)
C = c("darkblue","red", "orange","black","green","yellow","cyan")
plot(S,range, type='n', col='white', main=paste(T,a), ylab="GFLOPS", xlab="Size")
i = 1
for (ab in algs) {
w = Algs[[ab]]
str(w)
lines(w$SIZE, w$HOT, col=C[i])
i = i +1
}
legend("topleft", legend=algs,col=C,lwd=3)
if (FILE) dev.off()
else X11()
}
}