Skip to content

Conversation

@SF-N
Copy link
Contributor

@SF-N SF-N commented Oct 25, 2024

In previous commits the following pieces where already added:

In this PR, concat_where tests are added and transformations are integrated. Currently, the feature is disabled for embedded (#2127) and DaCe (PR will be opened once this is merged).

Details:

  • constant folding for InfinityLiterals is added
  • various tuning to passes for index, concat_where builtins and InfinityLiteral
  • cases: field constructors now accept Domains (instead of `dict[Dimension, int])

@tehrengruber tehrengruber changed the title [Draft] feat[next]: Gtir concat where feat[next]: Gtir concat where Jan 29, 2025
@tehrengruber tehrengruber marked this pull request as draft January 29, 2025 10:36
Copy link
Contributor

@egparedes egparedes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (only very minor code style comments)

@havogt
Copy link
Contributor

havogt commented Jul 11, 2025

Moving the previous description to a comment:

Description will follow.

TODO

Tasks that can be picked up by others:

Potential splitting into multiple PRs when someone picks up a task:

  • split passes into separate PRS
  • embedded
  • changes to cases.py

@havogt havogt changed the title feat[next]: Gtir concat where feat[next]: Integration of concat_where Jul 11, 2025
@havogt havogt merged commit eb19848 into GridTools:main Jul 11, 2025
23 checks passed
edopao added a commit that referenced this pull request Jul 14, 2025
Lowering to SDFG of `concat_where` primitive, follows GTIR PR #1713.
Test coverage provided in previous PR.
philip-paul-mueller pushed a commit to philip-paul-mueller/gt4py that referenced this pull request Jul 15, 2025
In previous commits the following pieces where already added:
- GridTools#1998 
- GridTools#2065 

In this PR, `concat_where` tests are added and transformations are
integrated. Currently, the feature is disabled for embedded (GridTools#2127) and
DaCe (PR will be opened once this is merged).

Details:
- constant folding for `InfinityLiteral`s is added
- various tuning to passes for `index`, `concat_where` builtins and
`InfinityLiteral`
- cases: field constructors now accept `Domain`s (instead of
`dict[Dimension, int])

---------

Co-authored-by: Hannes Vogt <[email protected]>
Co-authored-by: Till Ehrengruber <[email protected]>
Co-authored-by: Edoardo Paone <[email protected]>
philip-paul-mueller pushed a commit to philip-paul-mueller/gt4py that referenced this pull request Jul 15, 2025
Lowering to SDFG of `concat_where` primitive, follows GTIR PR GridTools#1713.
Test coverage provided in previous PR.
stubbiali pushed a commit to stubbiali/gt4py that referenced this pull request Aug 19, 2025
…ridTools#1998)

GTIR concat_where frontend parts extracted from GridTools#1713. Credits to @SF-N
and @tehrengruber .

This PR removes the support for chained comparisons like `field_a <
field_b < field_c` which cannot be supported in embedded (same as `0 <
Dim < 42`) because it translates to a boolean scalar comparison as it is
evaluated as `(field_a < field_b) and (field_b < field_c)` with `and`
instead of `&`.

---------

Co-authored-by: tehrengruber <[email protected]>
stubbiali pushed a commit to stubbiali/gt4py that referenced this pull request Aug 19, 2025
…ols#2094)

Some scalar arguments of a lambda nested SDFG were not represented as
symbols, although used in domain symbolic expressions. The unittest
`test_concat_where.py:test_lap_like` In the `concat_where` PR (GridTools#1713)
was failing in lowering to SDFG because of this bug.
stubbiali pushed a commit to stubbiali/gt4py that referenced this pull request Aug 19, 2025
In previous commits the following pieces where already added:
- GridTools#1998 
- GridTools#2065 

In this PR, `concat_where` tests are added and transformations are
integrated. Currently, the feature is disabled for embedded (GridTools#2127) and
DaCe (PR will be opened once this is merged).

Details:
- constant folding for `InfinityLiteral`s is added
- various tuning to passes for `index`, `concat_where` builtins and
`InfinityLiteral`
- cases: field constructors now accept `Domain`s (instead of
`dict[Dimension, int])

---------

Co-authored-by: Hannes Vogt <[email protected]>
Co-authored-by: Till Ehrengruber <[email protected]>
Co-authored-by: Edoardo Paone <[email protected]>
stubbiali pushed a commit to stubbiali/gt4py that referenced this pull request Aug 19, 2025
Lowering to SDFG of `concat_where` primitive, follows GTIR PR GridTools#1713.
Test coverage provided in previous PR.
tehrengruber added a commit to tehrengruber/gt4py that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants