Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature[next] enable field origin in GTFN backend #1277

Merged
merged 8 commits into from
Jul 5, 2023
Merged

feature[next] enable field origin in GTFN backend #1277

merged 8 commits into from
Jul 5, 2023

Conversation

petiaccja
Copy link
Contributor

Pass the origin of LocatedFields through the bindings to GridTools.

Copy link
Contributor

@havogt havogt left a comment

Choose a reason for hiding this comment

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

2 more questions. I also pushed a change that enables a few more tests.

src/gt4py/next/otf/binding/pybind.py Outdated Show resolved Hide resolved
from gt4py.next.iterator import transforms

if lift_mode != transforms.LiftMode.FORCE_INLINE:
pytest.xfail("origin not yet supported in gtfn")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you fix the message? Do you understand what's not working?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really know, it crashes when freeing the temporaries, either bad logic or memory corruption. Probably also unrelated to this PR because it works when everything is inlined and the inputs and outputs are the same.

Copy link
Contributor

@havogt havogt left a comment

Choose a reason for hiding this comment

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

Looks good!

@havogt havogt merged commit be9b8c6 into GridTools:main Jul 5, 2023
18 checks passed
@petiaccja petiaccja deleted the gtfn-backend-field-origin branch July 5, 2023 13:48
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