You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it might make sense instead to allow numba.jit to be directly composed with numba.stencil
@numba.jit@numba.stencildeff(x):
...
Or, going further, stencil may just have a jit=True keyword. When I originally tried to use stencil I assumed that it would jit automatically. I suspect that most users coming to this function for the first time have a similar expectation, used to as we are with the simple API of numba.jit.
Thanks for the suggestion, I think that this would be a good thing to get working too. I'm fairly sure it's technically possible but may require a fair bit of unpicking of the current implementation as it's quite involved (also might be easier if/when more generic function IR inlining is supported).
Today, I think that the way to use stencil functions with numba is to include them in another function that is jitted.
I wonder if it might make sense instead to allow
numba.jit
to be directly composed withnumba.stencil
Or, going further, stencil may just have a
jit=True
keyword. When I originally tried to use stencil I assumed that it would jit automatically. I suspect that most users coming to this function for the first time have a similar expectation, used to as we are with the simple API of numba.jit.Example
The text was updated successfully, but these errors were encountered: