I am trying to exploit some of the new numba features to speed up solver instantiation in numbakit-ode
Briefly, I have certain a function (
_step) that takes another function (
rhs). I have
njitted both functions, and used
FunctionType to avoid recompiling
_step when another
rhs functions is given.
When trying to cache the compillation, I get:
NumbaWarning: Cannot cache compiled function “_step” as it uses dynamic globals (such as ctypes pointers and large global arrays)
I am not sure if this is because caching functions using
FunctionType is not supported or other spect of my step function, which contain constant arrays, but are no so large (~ 10 elements).