spcl / open-earth-compiler

development repository for the open earth compiler
https://arxiv.org/abs/2005.13014
Other
75 stars 14 forks source link

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

Closed gysit closed 4 years ago

gysit commented 4 years ago

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 commented 4 years ago

example syntax:

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

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