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

fix[next][dace]: remove temporary arrays with runtime shape on the output of a mapped nested SDFG #1877

Merged
merged 6 commits into from
Feb 20, 2025

Conversation

edopao
Copy link
Contributor

@edopao edopao commented Feb 19, 2025

This PR provides a better fix than the one delivered earlier in #1828. It adds a check to detect whether the temporary output data has compile-time or runtime size. In case of runtime size, the transient array on the output connector of a mapped nested SDFG is removed. This is needed in order to avoid dynamic memory allocation inside the cuda kernel that represents a parallel map scope.

@edopao edopao changed the title Gtir dace mapped nsdfg fixt[next][dace]: remove transent on the output of a mapped nested SDFG Feb 19, 2025
@edopao edopao changed the title fixt[next][dace]: remove transent on the output of a mapped nested SDFG fix[next][dace]: remove transent on the output of a mapped nested SDFG Feb 19, 2025
@edopao edopao force-pushed the gtir-dace-mapped_nsdfg branch from d511e89 to e9d0944 Compare February 19, 2025 20:55
@edopao edopao changed the title fix[next][dace]: remove transent on the output of a mapped nested SDFG fix[next][dace]: remove transient on the output of a mapped nested SDFG Feb 19, 2025
@edopao edopao changed the title fix[next][dace]: remove transient on the output of a mapped nested SDFG fix[next][dace]: remove temporary arrays with runtime shape on the output of a mapped nested SDFG Feb 20, 2025
Copy link
Contributor

@philip-paul-mueller philip-paul-mueller left a comment

Choose a reason for hiding this comment

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

LGTM

@edopao edopao merged commit 1a46fb0 into GridTools:main Feb 20, 2025
23 checks passed
@edopao edopao deleted the gtir-dace-mapped_nsdfg branch February 20, 2025 12:13
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