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

feat[next]: Separates ITIR -> SDFG translation from running #1379

Conversation

philip-paul-mueller
Copy link
Contributor

@philip-paul-mueller philip-paul-mueller commented Nov 30, 2023

Before it was only possible to translate ITIR to SDFG and execute it and it was not possible to extract the SDFG.
This commits splits this task into two parts and thus allows to perform the ITIR to SDFG translation without executing it.

Should be merged after #1374 .

…erator` and related problems.

GT4Py started to exhibit an issue (out of bounds access) with the introduction of [PR1457](spcl/dace#1457).
The commit fixes this, by creating the proper arguments and ensuring that the memory it operates on is continuous and proper allocated.
I realized that the copy is unnecessary. The reason of the original memory problems was outside GT4Py and located in my driver code. The copy just fixed that internally, but was from the beginning a bad solution.
By default this function used the prefix `__var`, however, since everything with two leading underscores is considered by DaCe to be internal this could potentially lead to a name clash.
Thus I changed this to `_var`.
@philip-paul-mueller philip-paul-mueller force-pushed the separating_creation_running_sdfg branch from a8cdee0 to d5d5255 Compare December 1, 2023 07:46
@edopao
Copy link
Contributor

edopao commented Dec 1, 2023

We can merge this change before #1374, right? Actually, #1374 is not adding much at this point.

@philip-paul-mueller
Copy link
Contributor Author

No I did something stupid since these changes descend from #1374. Further one of your comments is basically everything what #1374 is all about.

@edopao
Copy link
Contributor

edopao commented Dec 4, 2023

cscs-ci run

@edopao
Copy link
Contributor

edopao commented Dec 4, 2023

cscs-ci run

@philip-paul-mueller
Copy link
Contributor Author

cscs-ci run

1 similar comment
@edopao
Copy link
Contributor

edopao commented Dec 4, 2023

cscs-ci run

@edopao
Copy link
Contributor

edopao commented Dec 4, 2023

cscs-ci run

@philip-paul-mueller philip-paul-mueller merged commit 9f2ed1e into GridTools:main Dec 5, 2023
philip-paul-mueller added a commit to philip-paul-mueller/gt4py that referenced this pull request Dec 18, 2023
This commit adds a function that allows to generate the arguments needed to call an SDFG, before this was part of `run_dace_iterator()`.
This made it very complex to run an SDFG outside this function.

One should consider this as an amend to [PR GridTools#1379](GridTools#1379).
philip-paul-mueller added a commit that referenced this pull request Dec 19, 2023
Added a function to get the arguments to call an SDFG.

This commit adds a function that allows to generate the arguments needed to call an SDFG, before this was part of `run_dace_iterator()`.
This made it very complex to run an SDFG outside this function.

One should consider this as an amend to [PR #1379](#1379).
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