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

add stencil access that support dynamic offsets given some constant bound #38

Closed
gysit opened this issue Aug 27, 2020 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@gysit
Copy link
Collaborator

gysit commented Aug 27, 2020

add stencil accesses that access an array a dynamic offset. We may still may want to provide static bounds somehow to enable shape inference. Ideally the bounds should be defined for the accessed fields and probably not local relative to the current position.

@gysit gysit added the enhancement New feature or request label Aug 27, 2020
@gysit
Copy link
Collaborator Author

gysit commented Aug 29, 2020

example syntax:

%0 = stencil.dyn_access %in(%i, %j %k) in ([-3, -3, 0]:[3, 3, 0]) : (stencil.temp<?x?x?xf32>) -> f32

  • provide a dynamic offset
  • the range specifies the absolute range of the dynamic access not considering a possible constant shift due to stencil inlining
  • the offset may be an optional attribute set to zero by default

open questions:
does it make more sense to specify the access range using absolute or relative offsets?

@gysit gysit closed this as completed Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant