Skip to content

Commit

Permalink
hotfix, add PLATFORM to make command in Autotuner
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Luar <[email protected]>
  • Loading branch information
luarss committed Sep 12, 2024
1 parent 180c08a commit 4b606b1
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 4b606b1

Please sign in to comment.