Skip to content

Commit 48dfc74

Browse files
committed
save metrics.json to log_path
Signed-off-by: Jack Luar <[email protected]>
1 parent ddbb38d commit 48dfc74

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,7 @@ def openroad(
302302
log_path = os.path.abspath(
303303
os.path.join(base_dir, f"flow/logs/{args.platform}/{args.design}", flow_variant)
304304
)
305-
report_path = os.path.abspath(
306-
os.path.join(
307-
base_dir, f"flow/reports/{args.platform}/{args.design}", flow_variant
308-
)
309-
)
310305
os.makedirs(log_path, exist_ok=True)
311-
os.makedirs(report_path, exist_ok=True)
312306

313307
if install_path is None:
314308
install_path = os.path.join(base_dir, "tools/install")
@@ -332,7 +326,7 @@ def openroad(
332326
stdout_file=os.path.join(log_path, "make-finish-stdout.log"),
333327
)
334328

335-
metrics_file = os.path.abspath(os.path.join(report_path, "metrics.json"))
329+
metrics_file = os.path.abspath(os.path.join(log_path, "metrics.json"))
336330
metrics_command = export_command
337331
metrics_command += f"{base_dir}/flow/util/genMetrics.py -x"
338332
metrics_command += f" -v {flow_variant}"

0 commit comments

Comments
 (0)