-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetting.py
146 lines (132 loc) · 7.5 KB
/
setting.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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#### pathfinder
#IRpath = "/Users/bofang/Documents/Benchmarks/pathfinder/pathfinder.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/pathfinder/pathfinder_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/pathfinder/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask._%arrayidx46']
#crashfile = "/Users/bofang/Documents/Benchmarks/pathfinder/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/pathfinder/precision"
#tid = "18608"
#Outbound = ['.omp_microtask._@wall','.omp_microtask._@cols']
#duplication = "/Users/bofang/Documents/Benchmarks/pathfinder"
#gepsize = 4
### lavaMD
#IRpath = "/Users/bofang/Documents/Benchmarks/lavaMD/lavaMD.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/lavaMD/lavaMD_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/lavaMD/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask._%v114','.omp_microtask._%x121','.omp_microtask._%y128','.omp_microtask._%z135']
#crashfile = "/Users/bofang/Documents/Benchmarks/lavaMD/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/lavaMD/precision"
#tid = "18608"
#Outbound = ['.omp_microtask._@wall','.omp_microtask._@cols']
#duplication = "/Users/bofang/Documents/Benchmarks/lavaMD/"
### particle
#IRpath = "/Users/bofang/PycharmProjects/PVF/particle/particle_filter.ll"
#indexFilePath = "/Users/bofang/PycharmProjects/PVF/particle/mapping_particle"
#tracePath = "/Users/bofang/PycharmProjects/PVF/particle/llfi.stat.trace.txt.prof.1"
#outputDataSet = ['.omp_microtask._%arrayidx110']
#Outbound = ['.omp_microtask._%2','.omp_microtask._%0']
#crashfile = "/Users/bofang/PycharmProjects/PVF/particle/crash"
#precision_file = "/Users/bofang/PycharmProjects/PVF/particle/precision"
### sc
#IRpath = "/Users/bofang/Documents/Benchmarks/sc/sc_omp.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/sc/mapping_sc"
#tracePath = "/Users/bofang/Documents/Benchmarks/sc/llfi.stat.trace.txt.prof.1"
#outputDataSet = ['.omp_microtask._%assign49']
#Outbound = ['.omp_microtask._%2','.omp_microtask._%0']
#crashfile = "/Users/bofang/Documents/Benchmarks/sc/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/sc/precision"
#duplication = "/Users/bofang/Documents/Benchmarks/sc"
### nw
#IRpath = "/Users/bofang/Documents/Benchmarks/nw/needle.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/nw/needle_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/nw/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask.9_%arrayidx42','.omp_microtask._%arrayidx40']
#crashfile = "/Users/bofang/Documents/Benchmarks/nw/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/nw/precision"
#tid = "18608"
#Outbound = ['.omp_microtask._@wall','.omp_microtask._@cols']
#duplication = "/Users/bofang/Documents/Benchmarks/nw/"
### bfs
#IRpath = "/Users/bofang/PycharmProjects/PVF/bfs/bfs.ll"
#indexFilePath = "/Users/bofang/PycharmProjects/PVF/bfs/bfs_mapping"
#tracePath = "/Users/bofang/PycharmProjects/PVF/bfs/llfi.stat.trace.txt.prof.0.test"
#outputDataSet = ['.omp_microtask._%arrayidx40']
#Outbound = ['.omp_microtask._%2','.omp_microtask._@no_of_nodes']
#tid = "23923"
### hotspot
#IRpath = "/Users/bofang/Documents/Benchmarks/hotspot/hotspot.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/hotspot/hotspot_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/hotspot/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask.1_%arrayidx22']
#Outbound = ['.omp_microtask._%0','.omp_microtask._%2', '.omp_microtask.1_%0','.omp_microtask.1_%2']
#precision_file = "/Users/bofang/Documents/Benchmarks/hotspot/precision"
#tid = "2909"
#gepsize = 8
#duplication = "/Users/bofang/Documents/Benchmarks/hotspot/"
### matrix multiplication
#IRpath = "/Users/bofang/Documents/Benchmarks/mm/mm.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/mm/mm_small_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/mm/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask._%arrayidx21']
#Outbound = ['.omp_microtask._%2','.omp_microtask._%0']
#crashfile = "/Users/bofang/Documents/Benchmarks/mm/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/mm/precision"
#duplication = "/Users/bofang/Documents/Benchmarks/mm/"
### reduction
#IRpath = "/Users/bofang/PycharmProjects/PVF/reduction/reduction.ll"
#indexFilePath = "/Users/bofang/PycharmProjects/PVF/reduction/reduction_mapping"
#tracePath = "/Users/bofang/PycharmProjects/PVF/reduction/llfi.stat.trace.txt.prof.1"
#outputDataSet = ['.omp_microtask._%arrayidx']
#Outbound = ['.omp_microtask._%2']
#tid = "8819"
### lud
#IRpath = "/Users/bofang/Documents/Benchmarks/lud/lud_omp.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/lud/lud_omp_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/lud/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask._%arrayidx42','.omp_microtask.1_%arrayidx54']
#Outbound = ['.omp_microtask._%2','.omp_microtask._%0','.omp_microtask.1_%2',".omp_microtask.1_%0"]
#crashfile = "/Users/bofang/Documents/Benchmarks/lud/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/lud/precision"
#duplication = "/Users/bofang/Documents/Benchmarks/lud"
###particlefilter
#IRpath = "/Users/bofang/Documents/Benchmarks/particle/particle_filter.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/particle/mapping_particle"
#tracePath = "/Users/bofang/Documents/Benchmarks/particle/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask._%arrayidx110']
#Outbound = ['.omp_microtask._%2','.omp_microtask._%0']
#crashfile = "/Users/bofang/Documents/Benchmarks/particle/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/particle/precision"
#duplication = "/Users/bofang/Documents/Benchmarks/particle"
#srad
#IRpath = "/Users/bofang/Documents/Benchmarks/srad/srad.ll"
#indexFilePath = "/Users/bofang/Documents/Benchmarks/srad/srad_mapping"
#tracePath = "/Users/bofang/Documents/Benchmarks/srad/llfi.stat.trace.txt.prof.0"
#outputDataSet = ['.omp_microtask.12_%arrayidx60']
#Outbound = ['.omp_microtask._%2','.omp_microtask._%0','.omp_microtask.12_%2',".omp_microtask.12_%0"]
#crashfile = "/Users/bofang/Documents/Benchmarks/srad/crash"
#precision_file = "/Users/bofang/Documents/Benchmarks/srad/precision"
#duplication = "/Users/bofang/Documents/Benchmarks/srad"
#bfs
IRpath = "/Users/bofang/Documents/Benchmarks/bfs/bfs.ll"
indexFilePath = "/Users/bofang/Documents/Benchmarks/bfs/bfs_mapping"
tracePath = "/Users/bofang/Documents/Benchmarks/bfs/llfi.stat.trace.txt.prof.0"
outputDataSet = ['.omp_microtask._%arrayidx40']
Outbound = ['.omp_microtask._%2','.omp_microtask._@no_of_nodes']
crashfile = "/Users/bofang/Documents/Benchmarks/bfs/crash"
precision_file = "/Users/bofang/Documents/Benchmarks/bfs/precision"
duplication = "/Users/bofang/Documents/Benchmarks/bfs"
#-------------
# instructions
#-------------
OSbits = 64
computationInst = ['add','fadd','sub','fsub','mul', 'fmul','udiv', 'sdiv', 'fdiv', 'urem', 'srem', 'frem','call']
floatingPoint = ['fadd','fmul','fdiv','fsub','frem']
bitwiseInst = ['shl', 'lshr', 'ashr', 'and', 'or', 'xor']
pointerInst = ['getelementptr']
memoryInst = ['load', 'store','alloca']
castInst = ['zext', 'sext', 'fptrunc', 'fpext', 'fptoui', 'fptosi', 'uitofp', 'sitofp', 'ptrtoint', 'inttoptr', 'bitcast', 'addrspacecast','trunc']
otherInst = ['icmp', 'fcmp', 'phi', 'select']
intrinsics = ['memcpy', 'printf', 'exit', 'llvm.umul.with.overflow.i64', '_Znam',
'__kmpc_dispatch_fini_4', '__kmpc_barrier', '__kmpc_dispatch_next_4', 'llvm.memcpy.p0i8.p0i8.i64',
'_ZdaPv', 'gettimeofday', '__kmpc_fork_call', 'ompc_set_num_threads']
extra = ['srand','atoi','itoa','roundDouble','llvm.pow.f64','fabs']