-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.py
27 lines (21 loc) · 885 Bytes
/
plot.py
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
import os, sys
benchmarks = ["blowfish", "crc32", "2dfir", "cubic", "fdct", "rijndael", "dijkstra", "int_matmult", "float_matmult", "sha"]
if len(sys.argv) == 2:
platforms = [sys.argv[1]]
print sys.argv
else:
platforms = ["cortex-m0", "cortex-m3", "cortex-a8", "epiphany"]
scripts = [
("plot_O1_main_effects.py", "O1_main_effects_"),
# ("plot_O1_main_effects_a8.py", "O1_main_effects_"),
# ("plot_O2_main_effects.py", "O2_main_effects_"),
# ("plot_O2_main_effects_a8.py", "O2_main_effects_"),
# ("plot_O1_addsub.py", "O1_addsub_"),
# ("plot_O2_addsub.py", "O2_addsub_"),
]
for s,n in scripts:
for p in platforms:
for b in benchmarks:
#cmdline = "python " + s + " --no-display "+b+" "+p
cmdline = "python " + s + " -s ~/Dropbox/auto_sig/"+p+"/"+n+b+".png --no-display "+b+" "+p
os.system(cmdline)