-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the Numba JIT-compilation code (#1414)
The JIT-compiled code time savings don't pay back the compilation time in Python 3.9+, so drop the library dependency. See #1400 and #1413, which improved the payback in some cases but not enough to matter to runSim. See https://github.com/1fish2/numba-test and https://github.com/1fish2/numba-test/blob/main/observations.md for measurements of 4 matrices captured from a cell sim which run about this many times in a typical cell generation: * TwoComponentSystem derivatives: 261K * TwoComponentSystem derivatives_jacobian: 32K * Equilibrium rates: 267K * Equilibrium rates_jacobian: 59K ### Changes * Remove `numba` from `requirements.txt` but I'll leave it in the `wcEcoli3` pyenv on Sherlock until next time we need to rebuild it. * Update the --jit / --no-jit CLI arg docstrings, but leave in these args so no shell scripts will break. * Don't change the `build_ode.build_functions()` API or its callers, so it'd be easy to reenable the JIT compiler someday.
- Loading branch information
Showing
5 changed files
with
20 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,6 @@ wheel>=0.40.0 | |
numpy==1.24.3 | ||
scipy==1.10.1 | ||
|
||
numba==0.57.0 | ||
llvmlite==0.40.0 | ||
|
||
aesara==2.9.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters