Skip to content

fix[cartesian]: loop reordering in schedule tree#2546

Open
romanc wants to merge 6 commits intoGridTools:mainfrom
romanc:romanc/fix-k-loop-flipping
Open

fix[cartesian]: loop reordering in schedule tree#2546
romanc wants to merge 6 commits intoGridTools:mainfrom
romanc:romanc/fix-k-loop-flipping

Conversation

@romanc
Copy link
Copy Markdown
Contributor

@romanc romanc commented Mar 23, 2026

Description

This PR fixes the loop reordering in the schedule tree. Loop reordering is used as part of the automatic adaption to different memory layouts. The current implementation would run into issues when re-ordering sequential vertical loops (e.g. with computation(FORWARD) or with computation(BACKWARD)).

In addition, this PR updates the DaCe dependency to include fixes from mainline DaCe; namely a fix to InlineSDFG, which was found to insert race conditions in certain cases.

Together, the fixes in this PR stabilize/validate the remapping translate test with different loop/memory layouts.

Requirements

  • All fixes and/or new features come with corresponding tests.
  • Important design decisions have been documented in the appropriate ADR inside the docs/development/ADRs/ folder.
    N/A

@romanc romanc force-pushed the romanc/fix-k-loop-flipping branch from 10f824c to c1a3422 Compare March 23, 2026 16:19
@romanc romanc mentioned this pull request Mar 26, 2026
3 tasks
@romanc

This comment was marked as outdated.

@romanc romanc force-pushed the romanc/fix-k-loop-flipping branch from 9b4fb61 to b266249 Compare March 27, 2026 08:32
romanc added 3 commits March 27, 2026 10:44
This commit updates the DaCe dependency to bring fixes from DaCe
mainline. In particular, this brings a fix to InlineSDFG, which would
insert a race condition under certain conditions.
@romanc romanc force-pushed the romanc/fix-k-loop-flipping branch from b266249 to 5e611ed Compare March 27, 2026 09:44
@romanc romanc marked this pull request as ready for review March 27, 2026 09:49
@romanc romanc requested a review from FlorianDeconinck March 27, 2026 10:04
@romanc romanc changed the title WIP - fix[cartesian]: loop reordering in schedule tree fix[cartesian]: loop reordering in schedule tree Mar 27, 2026
@romanc
Copy link
Copy Markdown
Contributor Author

romanc commented Mar 27, 2026

cscs-ci run

2 similar comments
@FlorianDeconinck
Copy link
Copy Markdown
Contributor

cscs-ci run

@romanc
Copy link
Copy Markdown
Contributor Author

romanc commented Mar 27, 2026

cscs-ci run

@romanc
Copy link
Copy Markdown
Contributor Author

romanc commented Mar 27, 2026

I forgot to push the dace changes to our branch on the gt4py org that's maybe why the test keep failing, though it doesn't really make sense that only the AMD tests are rebuilding (and failing to rebuild) the image ...

@romanc
Copy link
Copy Markdown
Contributor Author

romanc commented Mar 27, 2026

cscs-ci run

Copy link
Copy Markdown
Contributor

@FlorianDeconinck FlorianDeconinck left a comment

Choose a reason for hiding this comment

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

LGTM

cscs-ci dies on ROCM image build, unrelated

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.

2 participants