Skip to content

Commit

Permalink
hot fix for dwconv to run pnr first and then bitstream gen
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchen-mei committed Nov 14, 2024
1 parent 698a1c1 commit 35cd011
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion aha/util/regress.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_hardcoded_dense_app(test, width, height, env_parameters, extra_args, la
print(f"copying hardcoded bin folder", flush=True)
shutil.copytree(f"{app_path}/bin_hardcoded", f"{app_path}/bin")
except:
print(f"please don't delete hardcoded bin folder", flush=True)
raise RuntimeError(f"[ERROR] Please don't delete hardcoded bin folder")

# To use daemon, call regress.py with args '--daemon auto'
# --- extra_args=['--daemon', 'auto']
Expand All @@ -374,6 +374,21 @@ def test_hardcoded_dense_app(test, width, height, env_parameters, extra_args, la
if ('--daemon' in extra_args) and ('auto' in extra_args):
use_daemon = [ "--daemon", "auto" ]

try:
buildkite_args = [
"aha",
"pnr",
test,
"--width", str(width),
"--height", str(height),
"--env-parameters", env_parameters,
] + use_daemon + layer_array
except:
print("[INFO] Finished PnR which is expected to fail", flush=True)

print(f"[INFO] Re-copying design_top.json configuration", flush=True)
shutil.copy(f"{app_path}/bin_hardcoded/design_top.json", f"{app_path}/bin/design_top.json")

buildkite_args = [
"aha",
"pnr",
Expand Down

0 comments on commit 35cd011

Please sign in to comment.