-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (27 loc) · 1.25 KB
/
main.py
File metadata and controls
31 lines (27 loc) · 1.25 KB
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
import argparse
from src.bilevel import bilevel
from src.Ablation.mapping_baseline.mapping_ablation import mapping_ablation
from src.Ablation.topology_baseline.topology_ablation import topology_ablation
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--time_file', required=True)
parser.add_argument('--bench_file', required=True)
parser.add_argument('--trace_file', required=True)
parser.add_argument('--topo_file', required=True)
parser.add_argument('--show_file', required=True)
args = parser.parse_args()
# print("Time File:", args.time_file)
# print("Benchmark File:", args.bench_file)
# print("Trace File:", args.trace_file)
# print("Topology File:", args.topo_file)
# print("Show File:", args.show_file)
print("Bilevel Algorithm:")
bilevel(args.time_file, args.bench_file, args.trace_file, args.topo_file, args.show_file)
print("\n================ Ablation Experiments ================")
print("Mapping Ablation:")
mapping_ablation(args.time_file, args.bench_file)
print("-----------------------------------------------------")
print("Topology Ablation:")
topology_ablation(args.time_file, args.bench_file)
if __name__ == "__main__":
main()