hgrecco / numbakit-ode

Leveraging numba to speed up ODE integration
Other
68 stars 3 forks source link

No-Numba mode #8

Open maurosilber opened 3 years ago

maurosilber commented 3 years ago

Can we replace NBKODE_NONUMBA=0 with NUMBA_DISABLE_JIT=0? Or are we doing something more?

NUMBA_DISABLE_JIT Disable JIT compilation entirely. The jit() decorator acts as if it performs no operation, and the invocation of decorated functions calls the original Python function instead of a compiled version. This can be useful if you want to run the Python debugger over your code.

hgrecco commented 3 years ago

The main difference is that using NBKODE_NONUMBA allows running numbakit-ode without having numba installed. This is certainly debatable (it is called numbakit after all). But my feeling is the cost is small (an environment variable and a compatibility module).