Skip to content

Commit

Permalink
code comment on using_explicit_control_flow
Browse files Browse the repository at this point in the history
  • Loading branch information
edopao committed Feb 5, 2025
1 parent 1a513be commit bc8d575
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ def _lower_lambda_to_nested_sdfg(
# the lambda expression, i.e. body of the scan, will be created inside a nested SDFG.
nsdfg = dace.SDFG(sdfg_builder.unique_nsdfg_name(sdfg, "scan"))
nsdfg.debuginfo = gtir_sdfg_utils.debug_info(lambda_node, default=sdfg.debuginfo)
# We set `using_explicit_control_flow=True` because the vertical scan is lowered to a `LoopRegion`.
# This property is used by pattern matching in SDFG transformation framework
# to skip those transformations that do not yet support control flow blocks.
nsdfg.using_explicit_control_flow = True
lambda_translator = sdfg_builder.setup_nested_context(lambda_node, nsdfg, lambda_symbols)

Expand Down

0 comments on commit bc8d575

Please sign in to comment.