Skip to content

Commit

Permalink
ready for resnet benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Nov 17, 2024
1 parent d051a2c commit ff29816
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions compiler/ir/autoflow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ def generate_one_list(n: int, i: int):
if schedule_bound % template_bound != 0:
pass
print('imperfect factorization, no support yet')
padded_schedule = schedule.pad_dim(N, schedule_bound + (schedule_bound % template_bound))
tiled_schedule = padded_schedule.tile_dim(N, template_bound)
# try again with padded schedule, but no increased dim
yield from scheduler_backtrack(template, tiled_schedule, pure_output_stationary, dim + 1)
else:
pass
print('match, will apply tiling')
Expand All @@ -117,5 +121,7 @@ def scheduler(template: Template, schedule: Schedule, schedule_idx: int = 0, pur

schedules = list(schedules)

breakpoint()

# match at schedule idx
return schedules[schedule_idx]
2 changes: 1 addition & 1 deletion kernels/conv/genbenchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generate_resnet_benchmark():
]


for i, spec in enumerate(specs[0:1]):
for i, spec in enumerate(specs):

module = generate_conv_ir(spec, generate_constants = False)

Expand Down

0 comments on commit ff29816

Please sign in to comment.