Skip to content

Commit 6c52a38

Browse files
authored
Merge pull request #2343 from luarss/topic/evaluate-at-ci
[Autotuner] hotfix, add PLATFORM to make command
2 parents 180c08a + 4b606b1 commit 6c52a38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def parse_flow_variables():
347347
makefile_path = os.path.join(cur_path, "../../../../flow/")
348348
initial_path = os.path.abspath(os.getcwd())
349349
os.chdir(makefile_path)
350-
result = subprocess.run(["make", "vars"])
350+
result = subprocess.run(["make", "vars", f"PLATFORM={args.platform}"])
351351
if result.returncode != 0:
352352
print(f"[ERROR TUN-0018] Makefile failed with error code {result.returncode}.")
353353
sys.exit(1)
@@ -532,6 +532,7 @@ def openroad(base_dir, parameters, flow_variant, path=""):
532532
make_command = export_command
533533
make_command += f"make -C {base_dir}/flow DESIGN_CONFIG=designs/"
534534
make_command += f"{args.platform}/{args.design}/config.mk"
535+
make_command += f" PLATFORM={args.platform}"
535536
make_command += f" FLOW_VARIANT={flow_variant} {parameters}"
536537
make_command += f" EQUIVALENCE_CHECK=0"
537538
make_command += f" NPROC={args.openroad_threads} SHELL=bash"

0 commit comments

Comments
 (0)