From e2327e8abd195cd292745077c823c0aca3e5043e Mon Sep 17 00:00:00 2001 From: Edoardo Paone Date: Mon, 3 Feb 2025 15:39:12 +0100 Subject: [PATCH] skip preprocess in gt_inline_nested_sdfg as temporary workaround --- .../runners/dace/transformations/simplify.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/gt4py/next/program_processors/runners/dace/transformations/simplify.py b/src/gt4py/next/program_processors/runners/dace/transformations/simplify.py index 60443eb06c..bb1ab9047d 100644 --- a/src/gt4py/next/program_processors/runners/dace/transformations/simplify.py +++ b/src/gt4py/next/program_processors/runners/dace/transformations/simplify.py @@ -149,15 +149,19 @@ def gt_inline_nested_sdfg( validate_all: Performs extensive validation. """ first_iteration = True + do_preproccess: Final[bool] = False nb_preproccess_total = 0 nb_inlines_total = 0 while True: - nb_preproccess = sdfg.apply_transformations_repeated( - [dace_dataflow.PruneSymbols, dace_dataflow.PruneConnectors], - validate=False, - validate_all=validate_all, - ) - nb_preproccess_total += nb_preproccess + if do_preproccess: + nb_preproccess = sdfg.apply_transformations_repeated( + [dace_dataflow.PruneSymbols, dace_dataflow.PruneConnectors], + validate=False, + validate_all=validate_all, + ) + nb_preproccess_total += nb_preproccess + else: + nb_preproccess = 0 if (nb_preproccess == 0) and (not first_iteration): break