Skip to content

Commit 83b6b35

Browse files
committed
bug fix
Signed-off-by: Jack Luar <[email protected]>
1 parent 4ac5c51 commit 83b6b35

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tools/AutoTuner/scripts/plot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,17 @@ def load_dir(dir: str) -> pd.DataFrame:
9191
params.append(_dict)
9292
except Exception as e:
9393
failed.append(metrics_fname)
94+
print("Failed to load", metrics_fname)
95+
print(e)
9496
continue
9597

9698
# Merge all dataframe
9799
params_df = pd.DataFrame(params)
98100
try:
99101
progress_df = progress_df.merge(params_df, on="trial_id")
100102
except KeyError:
103+
print(params_df)
104+
print(progress_df)
101105
print(
102106
"Unable to merge DFs due to missing trial_id in params.json (possibly due to failed trials.)"
103107
)

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def openroad(
332332
stdout_file=os.path.join(log_path, "make-finish-stdout.log"),
333333
)
334334

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

0 commit comments

Comments
 (0)