Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#2343 from luarss/topic/evalua…
Browse files Browse the repository at this point in the history
…te-at-ci

[Autotuner] hotfix, add PLATFORM to make command
  • Loading branch information
vvbandeira authored Sep 12, 2024
2 parents 180c08a + 4b606b1 commit 6c52a38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/AutoTuner/src/autotuner/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def parse_flow_variables():
makefile_path = os.path.join(cur_path, "../../../../flow/")
initial_path = os.path.abspath(os.getcwd())
os.chdir(makefile_path)
result = subprocess.run(["make", "vars"])
result = subprocess.run(["make", "vars", f"PLATFORM={args.platform}"])
if result.returncode != 0:
print(f"[ERROR TUN-0018] Makefile failed with error code {result.returncode}.")
sys.exit(1)
Expand Down Expand Up @@ -532,6 +532,7 @@ def openroad(base_dir, parameters, flow_variant, path=""):
make_command = export_command
make_command += f"make -C {base_dir}/flow DESIGN_CONFIG=designs/"
make_command += f"{args.platform}/{args.design}/config.mk"
make_command += f" PLATFORM={args.platform}"
make_command += f" FLOW_VARIANT={flow_variant} {parameters}"
make_command += f" EQUIVALENCE_CHECK=0"
make_command += f" NPROC={args.openroad_threads} SHELL=bash"
Expand Down

0 comments on commit 6c52a38

Please sign in to comment.