Skip to content

Commit

Permalink
fix no halide_gen_args condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchen-mei committed May 14, 2024
1 parent 48d50c8 commit b730a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/hardware_benchmarks/hw_support/parse_design_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def main():
with open(outputName, 'w', encoding='utf-8') as fileout:
# If pad_o in args call padding functions to modify extents
halide_gen_args = os.getenv("HALIDE_GEN_ARGS")
if halide_gen_args and "pad_o_left" in halide_gen_args or "pad_o_right" in halide_gen_args: parseLoopExtentforPadding(meta, halide_gen_args)
if halide_gen_args is not None:
if "pad_o_left" in halide_gen_args or "pad_o_right" in halide_gen_args: parseLoopExtentforPadding(meta, halide_gen_args)

# pprint.pprint(meta, fileout, indent=2, compact=True)
print("writing to", outputName)
Expand Down

0 comments on commit b730a02

Please sign in to comment.