numbakit-ode icon indicating copy to clipboard operation
numbakit-ode copied to clipboard

No-Numba mode

Open maurosilber opened this issue 4 years ago • 1 comments

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.

maurosilber avatar Nov 24 '20 04:11 maurosilber

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).

hgrecco avatar Nov 24 '20 14:11 hgrecco