Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/gt4py/cartesian/backend/dace_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,11 @@ def sdfg_via_schedule_tree(self, *, validate: bool = False, simplify: bool = Tru
sdfg = stree.as_sdfg(
validate=validate,
simplify=simplify,
skip={"ScalarToSymbolPromotion", "ControlFlowRaising"},
# We skip
# - `ScalarToSymbolPromotion` because we've seen validation issue in the past
# - `ControlFlowRaising` because we already generate CFGs in stree -> SDFG
# - `LiftTrivialIf` because it's dead slow (e.g. fv3 acoustics parsing takes >90min compared to 10-15min without)
skip={"ScalarToSymbolPromotion", "ControlFlowRaising", "LiftTrivialIf"},
)

if do_cache:
Expand Down Expand Up @@ -485,11 +489,11 @@ def __call__(self) -> dict[str, dict[str, str]]:
manager = SDFGManager(self.backend.builder)

sdfg = manager.sdfg_via_schedule_tree()
_specialize_transient_strides(
sdfg,
self.backend.storage_info,
)
sdfg.simplify(validate=True, skip={"ScalarToSymbolPromotion"})
_specialize_transient_strides(sdfg, self.backend.storage_info)
# We skip
# - `ScalarToSymbolPromotion` because we've seen validation issues in the past
# - `LiftTrivialIf` because it's dead slow (e.g. fv3 acoustics parsing takes >90min compared to 10-15min without)
sdfg.simplify(validate=True, skip={"ScalarToSymbolPromotion", "LiftTrivialIf"})

# NOTE
# The glue code in DaCeComputationCodegen.apply() (just below) will define all the
Expand Down