Skip to content

Commit 4909395

Browse files
authored
Merge pull request AmeerHajAli#16 from AmeerHajAli/mcts_realtime_parse
Add len_blur results with mcts realtime parse
2 parents 29e810d + 911cd78 commit 4909395

File tree

9 files changed

+21433
-17
lines changed

9 files changed

+21433
-17
lines changed

apps/autoscheduler/paper_results_scripts/final_results_for_paper/some_results_May_20/mcts_cost+real/lens_blur.evaltime.txt

Lines changed: 4094 additions & 0 deletions
Large diffs are not rendered by default.

apps/autoscheduler/paper_results_scripts/final_results_for_paper/some_results_May_20/mcts_cost+real/lens_blur.log.1

Lines changed: 4425 additions & 0 deletions
Large diffs are not rendered by default.

apps/autoscheduler/paper_results_scripts/final_results_for_paper/some_results_May_20/mcts_cost+real/lens_blur.log.2

Lines changed: 4473 additions & 0 deletions
Large diffs are not rendered by default.

apps/autoscheduler/paper_results_scripts/final_results_for_paper/some_results_May_20/mcts_cost+real/lens_blur.log.3

Lines changed: 4281 additions & 0 deletions
Large diffs are not rendered by default.

apps/autoscheduler/paper_results_scripts/final_results_for_paper/some_results_May_20/mcts_cost+real/lens_blur.mincost.txt

Lines changed: 4094 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
4+
RL_END_OF_RUN 1
5+
6+
7+
8+
RL_END_OF_RUN 2
9+
10+
11+
12+
RL_END_OF_RUN 3
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
lens_blur 43910
3+
4+
5+
RL_END_OF_RUN 1
6+
7+
lens_blur 47382
8+
9+
10+
RL_END_OF_RUN 2
11+
12+
lens_blur 47025
13+
14+
15+
RL_END_OF_RUN 3
16+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
make: Entering directory '/home/ubuntu/llvm-project/Halide/apps/lens_blur'
3+
bin/host/process ../images/rgb_small.png 32 13 0.5 32 5 bin/host/out.png
4+
output width: 192; output height: 320
5+
Manually-tuned time: 4.92289ms
6+
Auto-scheduled time: 9.59936ms
7+
make: Leaving directory '/home/ubuntu/llvm-project/Halide/apps/lens_blur'
8+
9+
10+
RL_END_OF_RUN 1
11+
12+
make: Entering directory '/home/ubuntu/llvm-project/Halide/apps/lens_blur'
13+
bin/host/process ../images/rgb_small.png 32 13 0.5 32 5 bin/host/out.png
14+
output width: 192; output height: 320
15+
Manually-tuned time: 4.92639ms
16+
Auto-scheduled time: 5.482ms
17+
make: Leaving directory '/home/ubuntu/llvm-project/Halide/apps/lens_blur'
18+
19+
20+
RL_END_OF_RUN 2
21+
22+
make: Entering directory '/home/ubuntu/llvm-project/Halide/apps/lens_blur'
23+
bin/host/process ../images/rgb_small.png 32 13 0.5 32 5 bin/host/out.png
24+
output width: 192; output height: 320
25+
Manually-tuned time: 4.91487ms
26+
Auto-scheduled time: 6.4182ms
27+
make: Leaving directory '/home/ubuntu/llvm-project/Halide/apps/lens_blur'
28+
29+
30+
RL_END_OF_RUN 3
31+

apps/autoscheduler/paper_results_scripts/final_results_for_paper/some_results_May_20/plot/extract_run

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
from statistics import median
44
import glob
5-
import os
65

76
apps="bilateral_grid local_laplacian nl_means lens_blur camera_pipe stencil_chain harris hist max_filter unsharp interpolate conv_layer iir_blur bgu mat_mul resnet_50_blockwise".split(" ")
7+
88
autoschedulers="master random greedy beam mcts mcts_10seconds mcts_1second mcts_Cp10 mcts_cost+real mcts_sqrt2 manual".split(" ")
99

10+
1011
def strip_non_digits(s):
1112
return "".join([c for c in s if c.isdigit() or c == "."])
1213

@@ -160,13 +161,8 @@ with open('mincost.csv','w') as f:
160161
for autoscheduler in autoschedulers:
161162
if autoscheduler == 'random':
162163
values = get_rand_result(f"../{autoscheduler}/{app}.mincost.txt", scale, num_rand_runs[i], "JENNY_MINCOST: ")
163-
# if autoscheduler.startswith('mcts'):
164-
# tmp_log = f"../{autoscheduler}/{app}.tmp.log"
165-
# os.system(f"echo > {tmp_log}")
166-
# for log in glob.glob(f"../{autoscheduler}/{app}.log.*"):
167-
# os.system(f"cat {log} >> {tmp_log}")
168-
# values = get_mcts_result(f"tmp_log", scale, "JENNY_MINCOST: ")
169-
#values = get_mcts_result(f"../{autoscheduler}/{app}.log", scale, "JENNY_MINCOST: ")
164+
if autoscheduler == 'mcts_cost+real':
165+
values = get_mcts_result(f"../{autoscheduler}/{app}.log", scale, "JENNY_MINCOST: ")
170166
else:
171167
values = get_result(f"../{autoscheduler}/{app}.mincost.txt", scale, "JENNY_MINCOST: ")
172168

@@ -183,7 +179,6 @@ with open('mincost.csv','w') as f:
183179
f.write("{},{}\n".format(app, (',').join(results)))
184180
print("\n")
185181

186-
187182
with open('evaltime.csv','w') as f:
188183
print("evaltime")
189184
print(",".join(autoschedulers))
@@ -195,14 +190,8 @@ with open('evaltime.csv','w') as f:
195190
for autoscheduler in autoschedulers:
196191
if autoscheduler == 'random':
197192
values = get_rand_result(f"../{autoscheduler}/{app}.evaltime.txt", scale, num_rand_runs[i], "JENNY_EVALTIME: ")
198-
#if autoscheduler.startswith('mcts'):
199-
# tmp_log = f"../{autoscheduler}/{app}.tmp.log"
200-
# os.system(f"echo > {tmp_log}")
201-
# for log in glob.glob(f"../{autoscheduler}/{app}.log.*"):
202-
# os.system(f"cat {log} >> {tmp_log}")
203-
# tmp_log = f"../{autoscheduler}/{app}.tmp.log"
204-
# values = get_mcts_result(f"tmp_log", scale, "JENNY_EVALTIME: ")
205-
#values = get_mcts_result(f"../{autoscheduler}/{app}.log", scale, "JENNY_EVALTIME: ")
193+
if autoscheduler == 'mcts_cost+real':
194+
values = get_mcts_result(f"../{autoscheduler}/{app}.log", scale, "JENNY_EVALTIME: ")
206195
else:
207196
values = get_result(f"../{autoscheduler}/{app}.evaltime.txt", scale, "JENNY_EVALTIME: ")
208197

0 commit comments

Comments
 (0)