Skip to content

Commit 223d022

Browse files
author
Ed-5100
committed
fix(cli): continue running other floorplan when one floorplan failed
1 parent c7071e3 commit 223d022

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tapa/steps/meta.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def compile_with_floorplan_dse(ctx: click.Context, **kwargs: dict) -> None:
9999
kwargs["gen_graphir"] = True
100100
kwargs["enable_synth_util"] = False
101101
kwargs["run_add_pipeline"] = True
102+
succeeded = []
102103
for floorplan_file in floorplan_files:
103104
_logger.info("Using floorplan file: %s", floorplan_file)
104105
clean_obj = {
@@ -108,7 +109,19 @@ def compile_with_floorplan_dse(ctx: click.Context, **kwargs: dict) -> None:
108109
with click.Context(
109110
compile_entry, info_name=compile_entry.name, obj=clean_obj
110111
) as new_ctx:
111-
forward_applicable(new_ctx, compile_entry, kwargs)
112+
try:
113+
forward_applicable(new_ctx, compile_entry, kwargs)
114+
succeeded.append(floorplan_file)
115+
except Exception:
116+
_logger.exception(
117+
"Error during compilation with floorplan %s",
118+
floorplan_file,
119+
)
120+
continue
121+
122+
_logger.info("Found %d successful compilations with floorplan.", len(succeeded))
123+
for floorplan_file in succeeded:
124+
_logger.info("Successful compilation with floorplan: %s", floorplan_file)
112125

113126

114127
compile_with_floorplan_dse.params.extend(analyze.params)

0 commit comments

Comments
 (0)